0

How do i limit rand?

How do i limit lets say... number between 1 to 5?

31st Oct 2017, 7:27 AM
Guy293
Guy293 - avatar
2 Answers
0
Use the <random> header instead of rand() from <cstdlib>.
31st Oct 2017, 8:46 AM
Timon Paßlick