A random-seed is used to initialize a pseudo-random number generator in many programming languages.
Questions tagged [random-seed]
692 questions
-5
votes
2 answers
Why does rand()%10+1 give me a number between 1-10?
Im fairly new to programming
So i was actually trying to figure something out
Why does rand()%10+1 give us a number between 1-10 whereas 32767%10 is actually 7?
![](../../users/profiles/14539355.webp)
Axel Bozic
- 1
- 2
-5
votes
3 answers
Generate super random number in c++
C++11 Introduced the class that allows for generating very random numbers, it also creates an even distribution of random numbers. There is also implementation to generate a seed (a number used to make the Random Number Generator more random).
I am…
![](../../users/profiles/389832.webp)
Katianie
- 547
- 1
- 9
- 31