Hi Guys,
Can any one suggest to generate a random number of eight digit.
All suggestions are welcomed :)

Recommended Answers

All 3 Replies

Generate 1 digit, in a loop which runs 8 times.

rand() for random generation

Also
sprintf "%.2f" #if you want 8 digits as decimal places use that

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.