Why isn't the Microsoft built in class Random class an type static class as the Math. class is.
Why didn't they make this class static?
castajiz_2 35 Posting Whiz
Recommended Answers
Jump to PostRandom number generators, in a lot of cases, need to be deterministic and you often need more than one in order for it to remain deterministic.
If the RNG were static, you would be limited to one. Due to threading, this means that the RNG may not be deterministic. For …
All 3 Replies
Momerath 1,327 Nearly a Senior Poster Featured Poster
Sulaiman_1 -2 Light Poster
Ketsuekiame 860 Master Poster Featured 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.