Random value change

hi guys i have value in player data so i want do button do random for all the value
like the player strange 10 and speed is 10 if he press it will be random number from 1 to the number i want

To get a random number just use

math.random(1 , 10) --change 1 to the least number it can get and 10 to the max

oh thx i remember it like that

1 Like