@Maindric
There's really no such thing as a random number when it comes to a computer, but the function
RND() simulates it pretty well. Basically, it is an algorithm that calculates a series of numbers based on a seed number. If the seed is the same every time, then the series of numbers will be the same.
Sinani201 sugests that you seed the random number generator with the value of
timer(). This is good because it is unlikely to seed the random number generator with the same value because the timer is changing every millisecond.
Sometimes you want the series of numbers to be the same. Perhaps when randomizing a matrix - you always want the same shape, so you would seed rnd with
randomize <value> (value always being the same number). Maybe you have a gambling game and you want the computer to win all the time so you always have it deal the same cards or roll the same numbers on the dice - in these cases, you always seed rnd with the same values.
Enjoy your day.