Questions tagged [random-seed]

A random-seed is used to initialize a pseudo-random number generator in many programming languages.

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?
-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…
Katianie
  • 547
  • 1
  • 9
  • 31
1 2 3
46
47