View Single Post
Old 20 December 2004, 20:34   #1
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,610
A nice quick small random numbers routine?

Hi!

Wrote a routine to generate random numbers (0-65535). I start with a weird number for seed, I eor that with another weird number that changes for each time. Then I save the new seed, take it, divide by a weird number and take the modulo. I thought that would confuse it enough to make nice random numbers, but when I plot them a pattern shows up (the same number comes up several times in the number table).

Anybody have a nice little Really Random Number Generator (in 68000 Assembler of course)?

In that case, please share thy knowledge!
Photon is online now  
 
Page generated in 0.04258 seconds with 11 queries