mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
extmod/modurandom: Add some extra random functions.
Functions added are: - randint - randrange - choice - random - uniform They are enabled with configuration variable MICROPY_PY_URANDOM_EXTRA_FUNCS, which is disabled by default. It is enabled for unix coverage build and stmhal.
This commit is contained in:
@@ -686,4 +686,11 @@ Q(dupterm)
|
||||
Q(urandom)
|
||||
Q(getrandbits)
|
||||
Q(seed)
|
||||
#if MICROPY_PY_URANDOM_EXTRA_FUNCS
|
||||
Q(randrange)
|
||||
Q(randint)
|
||||
Q(choice)
|
||||
Q(random)
|
||||
Q(uniform)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user