[A83] Re: Randomization
[Prev][Next][Index][Thread]
[A83] Re: Randomization
I think I would first read r, then display a splash
screen, wait for a key, and after something is pressed
read r again (r is the best counter if a modulo 128
value is enough). That would give 16384 possibilites
for seeds. If we have a main menu, we can incorporate
the time needed for the first keypress (at least one
is likely to happen) by a third reading of r,
increasing this number to 2097152... That's most
probably more than the number of the times the
program will be run...
However, if you use r, use direct input for checking
the keys. It makes the resulting seed totally
unpredictable, there are so many instructions
involved.
PG
References: