How does a 1-10 simple number generator work?
silvercats
10
Junior Poster
Recommended Answers
Jump to Postis is a random number generator between 1 - 10 ?
Jump to PostThis article is a good start.
The most common method used in computer laguages is called the linear congruential method.
Something with multiplication of a seed and modulo a big prime number.
But …
Jump to PostActually it's right in the MSDN article on the Random Class
The current implementation of the Random class is based on Donald E. Knuth's subtractive random number generator algorithm. For more information, see D. E. Knuth. "The Art of Computer Programming, volume 2: Seminumerical Algorithms". Addison-Wesley, Reading, MA, second …
All 9 Replies
dualzNZ
18
Newbie Poster
silvercats
10
Junior Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
tinstaafl
1,176
Posting Maven
silvercats
10
Junior Poster
Michael27
29
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
tinstaafl
1,176
Posting Maven
Michael27
29
Newbie 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.