Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

random

Name: Anonymous 2012-01-01 23:19

hey /prog/.

is there a random number generator algorithm/library that supports something like this: use this seed, give me next nth random number? obviously it shouldn't iterate n times. I don't care if it is not that random.

there is probably something very simple for this but I can't get my head around it.

Name: Anonymous 2012-01-02 0:35

>>3
a little more random please
>>4
I don't think so

So in the end I will use the seed iterate through random values n times.

Also is there a way to get current seed of rand() in C? So if I use srand(seed), the random sequence will start from that point.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List