I’ve read about it on a message board – Random class isn’t really random. It is created with predictable fashion using a mathematical formula.
Is it really true? If so, Random isn’t really random??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As others have already said, Random creates pseudo-random numbers, depending on some seed value. It may be helpful to know that the .NET class
Randomhas two constructors:creates a random number generator with a given seed value, helpful if you want reproducible behaviour of your program. On the other hand,
creates a random number generator with date-time depending seed value, which means, almost every time you start your program again, it will produce a different sequence of (pseudo-)random numbers.