Bug in Rnd()
Posted: Thu Jul 16, 2026 9:05 pm
windows 11, Hollywood 11, seems to be having a problem with Rnd()-function. Havent noticed this before, since I didnt check its working before.
Today happened to be checking if my small code worked right, and noticed Random itself wasnt working properly.
Here is video showing the problem:
https://youtube.com/shorts/dD1xpWSUruk?feature=share
In this video I have one line of code:
I keep continously clicking the "run" button to run the program, and as you can see, the result isnt really random at all, but it seems like there is some slow timer that keeps going down, and result is based upon what time it is in that slow timer.
As in, if I click slowly result will be in way of 9, 6, 3.
If I keep clicking fast the "run"-button, then result is 9, 9, 9, 8, 8, 7, 7, 7
Today happened to be checking if my small code worked right, and noticed Random itself wasnt working properly.
Here is video showing the problem:
https://youtube.com/shorts/dD1xpWSUruk?feature=share
In this video I have one line of code:
Code: Select all
Debigprint(Rnd(13))As in, if I click slowly result will be in way of 9, 6, 3.
If I keep clicking fast the "run"-button, then result is 9, 9, 9, 8, 8, 7, 7, 7