943,929 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 1173
  • Perl RSS
Sep 16th, 2009
-1

generating random number of eight digit

Expand Post »
Hi Guys,
Can any one suggest to generate a random number of eight digit.
All suggestions are welcomed
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Prakash_8111 is offline Offline
21 posts
since Jun 2009
Sep 16th, 2009
0

Re: generating random number of eight digit

Generate 1 digit, in a loop which runs 8 times.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Sep 17th, 2009
0

Re: generating random number of eight digit

rand() for random generation

Also
sprintf "%.2f" #if you want 8 digits as decimal places use that
Reputation Points: 10
Solved Threads: 3
Junior Poster in Training
piers is offline Offline
68 posts
since Jul 2007
Sep 18th, 2009
0

Re: generating random number of eight digit

Hi Guys,
Can any one suggest to generate a random number of eight digit.
All suggestions are welcomed
http://www.daniweb.com/code/snippet216771.html

A search engine would also find many examples of code to do what you are asking.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: printing information form sub routines
Next Thread in Perl Forum Timeline: Random Password Generator





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC