randomFunctionReturn a random floating-point number in the 0 -> 1 range.Syntaxrandom()ReturnsFloat — Random floating-point value in 0 -> 1 (1 is exclusive).Examplechance = random() if chance < 0.25: text("lucky")