diff options
| author | Damien George | 2016-01-22 16:19:32 +0000 |
|---|---|---|
| committer | Damien George | 2016-01-26 15:27:00 +0000 |
| commit | a53af6c87540c41fdf34211ea99ee794cae6d160 (patch) | |
| tree | af67226b9674b4643e318d53be2be117d8c52d0c /stmhal | |
| parent | f5c42dd9d199aa61b16ad54a73531eefbb0be3eb (diff) | |
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.
Diffstat (limited to 'stmhal')
| -rw-r--r-- | stmhal/mpconfigport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h index 47ad0a415..eaf1da716 100644 --- a/stmhal/mpconfigport.h +++ b/stmhal/mpconfigport.h @@ -80,6 +80,7 @@ #define MICROPY_PY_IO_FILEIO (1) #define MICROPY_PY_UBINASCII (1) #define MICROPY_PY_URANDOM (1) +#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1) #define MICROPY_PY_UCTYPES (1) #define MICROPY_PY_UZLIB (1) #define MICROPY_PY_UJSON (1) |
