generating random number of eight digit

Reply

Join Date: Jun 2009
Posts: 10
Reputation: Prakash_8111 is an unknown quantity at this point 
Solved Threads: 0
Prakash_8111 Prakash_8111 is offline Offline
Newbie Poster

generating random number of eight digit

 
-1
  #1
Sep 16th, 2009
Hi Guys,
Can any one suggest to generate a random number of eight digit.
All suggestions are welcomed
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: generating random number of eight digit

 
0
  #2
Sep 16th, 2009
Generate 1 digit, in a loop which runs 8 times.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 57
Reputation: piers is an unknown quantity at this point 
Solved Threads: 2
piers piers is offline Offline
Junior Poster in Training

Re: generating random number of eight digit

 
0
  #3
Sep 17th, 2009
rand() for random generation

Also
sprintf "%.2f" #if you want 8 digits as decimal places use that
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: generating random number of eight digit

 
0
  #4
Sep 18th, 2009
Originally Posted by Prakash_8111 View Post
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.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC