Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not so much a bug, as slow!
#17
It doesn't automatically optimize that (and it might be interesting if it does).

Random number generators that are faster, and, sans rom probably smaller, here:

<!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:RandomStream.bas">http://www.boriel.com/wiki/en/index.php ... Stream.bas</a><!-- m -->


ZXB does use the same random stream generator (the one Patrik rak came up with), but it doesn't use it as integers natively.


The replacement function to use is randomLimit(n)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)