Ahilphino
Excellent OT User
- Joined
- Jun 5, 2013
- Messages
- 1,667
- Solutions
- 1
- Reaction score
- 734
Ok, so I would like to randomize 4 different values and I want all of them to be different values, right now I use this:
but with this system I would for instance sometimes get 2 or more of the same number, how can I make it so that they're always different numbers and all of them roll from 1 to 10?
Code:
local a, b, c, d = math.random(1,10), math.random(1,10), math.random(1,10), math.random(1,10)