Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local random = Random.new()
- local min, max = 999, 999999
- function Serial:Generate(Inventory)
- local randomSerial
- repeat
- randomSerial = tostring(random:NextInteger(min, max))
- until not Inventory[randomSerial]
- return randomSerial
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement