Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RND doesn't accept brackets (*solved*)
#2
:!: :!: Didn't know that. Anyway, optional parenthesis will be added to RND and PI. And use RANDOMIZE to set the seed as always.

Note: RND is a much efficient and improved random function: It's MUCH faster than ZX Spectrum ROM's one and produces different random sequences than ROM.
It's randomness is also much better (try plotting points at random x,y coords, and they look really random whilst in Sinclair BASIC diagonal lines begin to appear: this means there's a correlation between x, y points hence not very random :wink: ).

Also, Sinclair BASIC RND has a periodicity of 2^16 (65536) sequences, whilst ZX BASIC RND has a periodicity of 2^32 (4,294,967,296) len sequence!!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)