Deterministic random number generator with context?
Posted
by
user653133
on Stack Overflow
See other posts from Stack Overflow
or by user653133
Published on 2012-07-08T08:38:43Z
Indexed on
2012/07/08
9:15 UTC
Read the original article
Hit count: 168
I am looking for a seeded random number generator that creates a pool of numbers as a context. It doesn't have to be too good. It is used for a game, but it is important, that each instance of the Game Engine has it's own pool of numbers, so that different game instances or even other parts of the game that use random numbers don't break the deterministic character of the generated numbers.
Currently I am using rand() which obviously doesn't have this feature.
Are there any c or objective-c generators that are capable of doing what I want?
Best regards, Michael
© Stack Overflow or respective owner