mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Yet more Rubocopping
This commit is contained in:
@@ -6,7 +6,7 @@ def pbSetLotteryNumber(variable = 1)
|
||||
t = pbGetTimeNow
|
||||
hash = t.day + (t.month << 5) + (t.year << 9)
|
||||
srand(hash) # seed RNG with fixed value depending on date
|
||||
lottery = rand(65536) # get a number
|
||||
lottery = rand(65_536) # get a number
|
||||
srand # reseed RNG
|
||||
pbSet(variable, sprintf("%05d", lottery))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user