Bug in Rnd()

Report any Hollywood bugs here
Post Reply
Bugala
Posts: 1426
Joined: Sun Feb 14, 2010 7:11 pm

Bug in Rnd()

Post by Bugala »

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:

Code: Select all

Debigprint(Rnd(13))
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
Post Reply