09-02-2013, 02:26 PM
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.