Namespaces
Variants
Views
Actions

Talk:c/numeric/random/srand

From cppreference.com

[edit] Possibly incorrect information, and other stuff

For details, see my comments on the talk page for rand(). -- Indi 11:19, 11 November 2012 (PST)

[edit] "Each time rand() is seeded with srand(), it must produce the same sequence of values", your article says…

What…? Even if srand() is called with different seeds?

Could you kindly rephrase it so that it becomes obvious that if rand() is reseeded with a different seed, the resulting pseudo-random number sequence should differ, not be the same? Of course if this is correct…

indeed, the intent was obviously to say "with the same seed". The standard wording is "If srand is then called with the same seed value, the sequence of pseudo-random numbers shall be repeated" --Cubbi (talk) 14:06, 15 December 2015 (PST)