Hello, I got a problem. Whenever I use rand() and I rerun the source
I get the same results each time do u know whats wrong?
D4n1sD 0 Light Poster
Recommended Answers
Jump to Post— Fbody 682The random number generator has a specific starting value and follows a mathematical formula to generate the next number. If you know the starting value and the formula, you can predict the series that it will generate. That's just the way computerized random number generators are, some are better than …
Jump to Post— Dave Sinkula 2,398srand. once. at the beginning.
All 8 Replies
mrnutty 761 Senior Poster
Excizted 67 Posting Whiz
D4n1sD 0 Light Poster
Fbody 682 Posting Maven Featured Poster
D4n1sD 0 Light Poster
Dave Sinkula 2,398 long time no c Team Colleague
Fbody 682 Posting Maven Featured Poster
clutchkiller 3 Junior Poster
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.