+ 2
What is seed value?
2 odpowiedzi
+ 8
E.g. My RNG algorithm is
n = 500 + x * 100 / (x + 1), x > floor(x).
x would be the seed and n would be the number generated for range x > floor(x).
You insert the seed to the built-in RNG algorithm by using srand() function.
+ 2
The srand() function is used to generate truly random numbers.
This function allows to specify a seed value as its parameter, which is used for the rand() function's algorithm.