+ 2

What is seed value?

30th Jun 2017, 5:25 PM
Prashant
Prashant - avatar
2 ответов
+ 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.
30th Jun 2017, 5:51 PM
Hatsy Rei
Hatsy Rei - avatar
+ 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.
30th Jun 2017, 5:43 PM
Aissaoui Djamel Eddine
Aissaoui Djamel Eddine - avatar