Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Numbers
#6
britlion Wrote:Did you try it?
I tweaked it here to do 10,000 on rnd and time it, then do 10,000 on random and time it.
I recommend turning emulator up to full speed!
[ATTACHMENT NOT FOUND]
Sorry, I've been away (now back!).
This is exactly the test I was suggesting.
  1. The RND stream is MUCH faster! (Ideal for games) Confusedhock:
  2. ZX Basic RND generator I know is really "random" (well distributed). Visually "Comparing" both images, they seem really well distributed
I agree we could replace RANDOMIZE/RND generator with this one, then :?: RND is used very often in games, and the memory footprint looks not very significant Idea Also, for compatibility's sake, we should consider RND returning Float (yes, should be a bit slower)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)