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 PostYou may want more than one random number generator so that you have more than one sequence at a time.
Also, if it were static, you'd have to include code to make it thread safe across the entire system.
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.