![]() |
PicoVGA
1.2-cmake
VGA/TV display on Raspberry Pico
|
Random Generator. More...
#include <rand.h>
Public Member Functions | |
| void | Shift () |
| Shift random generator seed. | |
| u64 | Seed () const |
| Get random number seed. | |
| void | SetSeed (u64 seed) |
| Set random number seed. | |
| void | InitSeed () |
| Set random seed from ROSC counter. | |
| u8 | U8 () |
| Generate integer random number in full range. | |
| u16 | U16 () |
| Generate integer random number in full range. | |
| u32 | U32 () |
| Generate integer random number in full range. | |
| u64 | U64 () |
| Generate integer random number in full range. | |
| s8 | S8 () |
| Generate integer random number in full range. | |
| s16 | S16 () |
| Generate integer random number in full range. | |
| s32 | S32 () |
| Generate integer random number in full range. | |
| s64 | S64 () |
| Generate integer random number in full range. | |
| float | Float () |
| Generate float random number in range 0 (including) to 1 (excluding) | |
| double | Double () |
| Generate double random number in range 0 (including) to 1 (excluding) | |
| u8 | U8Max (u8 max) |
| Generate random number in range 0 to MAX (including) | |
| u16 | U16Max (u16 max) |
| Generate random number in range 0 to MAX (including) | |
| u32 | U32Max (u32 max) |
| Generate random number in range 0 to MAX (including) | |
| u64 | U64Max (u64 max) |
| Generate random number in range 0 to MAX (including) | |
| s8 | S8Max (s8 max) |
| Generate random number in range 0 to MAX (including) | |
| s16 | S16Max (s16 max) |
| Generate random number in range 0 to MAX (including) | |
| s32 | S32Max (s32 max) |
| Generate random number in range 0 to MAX (including) | |
| s64 | S64Max (s64 max) |
| gGenerate random number in range 0 to MAX (including) | |
| float | FloatMax (float max) |
| Generate decimal random number in range 0 (including) to MAX (excluding) | |
| double | DoubleMax (double max) |
| Generate decimal random number in range 0 (including) to MAX (excluding) | |
| u8 | U8MinMax (u8 min, u8 max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| u16 | U16MinMax (u16 min, u16 max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| u32 | U32MinMax (u32 min, u32 max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| u64 | U64MinMax (u64 min, u64 max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| s8 | S8MinMax (s8 min, s8 max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| s16 | S16MinMax (s16 min, s16 max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| s32 | S32MinMax (s32 min, s32 max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| s64 | S64MinMax (s64 min, s64 max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| float | FloatMinMax (float min, float max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
| double | DoubleMinMax (double min, double max) |
| Generate random number in range MIN to MAX (including). If MIN > MAX, then number is generated out of interval. | |
Random Generator.