mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-25 09:34:24 +00:00
13 lines
242 B
GDScript3
13 lines
242 B
GDScript3
|
class_name Random
|
||
|
|
||
|
## Random number generator utilities
|
||
|
|
||
|
## Lazy init [RandomNumberGenerator].
|
||
|
static var rng: RandomNumberGenerator = null:
|
||
|
get:
|
||
|
if rng == null:
|
||
|
rng = RandomNumberGenerator.new()
|
||
|
return rng
|
||
|
set(value):
|
||
|
rng = value
|