G
Guest
I am writing some simple games using the Compact Framework and I'm trying to
get better random numbers. I've been using DateTime.Now to get the
Millisecond field to seed the random number generator, but the value is
always 0 (both in the emulator and on my Pocket PC). I started using
Environment.TickCount, but values don't vary as much as I would like.
I've download several different code samples to improve the randomness, but
it seems that if the initial seed isn't random enough, it won't matter much.
If anyone has any suggestions, I'd appreciate it.
get better random numbers. I've been using DateTime.Now to get the
Millisecond field to seed the random number generator, but the value is
always 0 (both in the emulator and on my Pocket PC). I started using
Environment.TickCount, but values don't vary as much as I would like.
I've download several different code samples to improve the randomness, but
it seems that if the initial seed isn't random enough, it won't matter much.
If anyone has any suggestions, I'd appreciate it.