123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|520|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> Random Telephone Number

Mon, 11 Apr 2011, 18:19
killa57
Hi all i need help i got the random telephone number to generate but the first number sometimes comes out missing how can i stop that so it can make a full ten digit random number?


Mon, 11 Apr 2011, 21:08
Evil Roy Ferguso
For a quick fix, try:



instead. That will pad with a zero instead of omitting the digit.
Mon, 11 Apr 2011, 21:28
killa57
Thank you it Worked! wow i feel like a dits i have been at it all day lol
Tue, 12 Apr 2011, 00:47
Afr0
Phone numbers aren't ten digits. They're eight. Unless you're using international area codes as well.

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 12 Apr 2011, 01:00
JL235
Phone numbers are 11 digits in the UK.
Tue, 12 Apr 2011, 01:53
spinal
Afr0 it all depends which country you are talking about. UK has eleven digits, the first five are an 'area' code, the last six are the unique phone number. However, if calling from a different country, you then have to take into account the international code, which replaces the first zero, making the number thirteen digits.

-=-=-
Check out my excellent homepage!
Tue, 12 Apr 2011, 01:59
JL235
Maybe it's because my parents live in Birmingham, but by convention me and my parents have always treated local area numbers as 7 digits rather then 6 (although I know about 6 too). I'm sure that is standardised in the UK, but it does show that even within the same country different areas use different conventions.
Tue, 12 Apr 2011, 03:49
Afr0
wut? UK has 11?
Honestly, how many people do you have living down there in farmland?

(Norway only has three digits for area-code, and I thought it was quite common in Europe in general. AFAIK they have the same setup in Denmark, Sweden and Finland).


-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Tue, 12 Apr 2011, 16:28
killa57
USA has ten digits thats not including the 1 when dialing long distance 1(555)-555-5555
Thu, 14 Apr 2011, 14:22
Dabz

wut? UK has 11?
Honestly, how many people do you have living down there in farmland?


Well, when a country dishes out handsome benefits to anyone that breathes, said country tends to attract quite a lot of people.

Dabz

EDIT: Apologizes for the offtopicness

-=-=-
Intel Core i5 6400 2.7GHz, NVIDIA GeForce GTX 1070 (8GB), 8Gig DDR4 RAM, 256GB SSD, 1TB HDD, Windows 10 64bit