The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not so much a bug, as slow!
#22
boriel Wrote:Some BASICs implements RAND(a, b) as a RANDOM integer generator, but I think it's not a good idea to extend the BASIC language anymore

OK, it makes sense!

Even so, there's still the suggestion that ZXB could internally recognize amd optimize INT(RND * n) as a special case, since this situation is quite common, should make quite a difference in performance, and this would not require any changes to the language... Although I agree that britlion's alternative is quite good.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)