mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
randUint32
This commit is contained in:
parent
b67c7e41e7
commit
6c6a21b625
@ -1618,6 +1618,11 @@ def randInt32(rng=random.random):
|
||||
i *= -1
|
||||
return i
|
||||
|
||||
def randUint32(rng=random.random):
|
||||
"""returns a random integer in [0..2^32).
|
||||
rng must return float in [0..1]"""
|
||||
return long(rng() * 0xFFFFFFFFL)
|
||||
|
||||
class Enum:
|
||||
"""Pass in list of strings or string of comma-separated strings.
|
||||
Items are accessible as instance.item, and are assigned unique,
|
||||
|
Loading…
x
Reference in New Issue
Block a user