Make a number range

Hello! I am wanting to do something as show below:

Min of 2, Max of 20. Go like this: 2, 3, 4, 5, 6, 7, keep going until 20.

I thought about using math.random for this but tha only used the 2 parameters and does not use any other numbers. I am wanting an actual range of the start - last numbers with the numbers in-between used.

Anyone know what to use? (I have a suspicion it is math.min)

Thank you! :smiley:

math.random(2,20) will give you a random number between those numbers.

2 Likes

Are you sure? Because when I use it, it only uses 2 and 20.

Have you tried doing it in the studio command bar a couple of times?

1 Like

I haven’t used the command bar in a year xD

Idk I will try that and see if it ranges.