I want to do that without using boost and “strange” things, I want to fill a board randomly for the game of life.
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.
Just use
stlib‘srand():Just be aware that it will not yield perfectly uniform results. In order to achieve that, you’ll probably have to implement something yourself. For non-cryptographic purposes, you’re probably ok anyway.