Do all C++ STLs produce the same random numbers (for the same seed)?
Does this hold for all platforms?
Is this specified somewhere?
Do all C++ STLs produce the same random numbers (for the same seed)? Does
Share
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.
No, the standard does not require a specific implementation. Also, the only standard way to get random numbers are
randandsrand, and they are not part of what originally was the STL, but rather functions taken over from C.