Numeric Types
Generate random numbers with optional range constraints.
Integers
Unsigned Integers
u8 (0 to 255)
{"fake": ["u8"]}
{"fake": ["u8", min, max]}
u16 (0 to 65,535)
{"fake": ["u16"]}
{"fake": ["u16", min, max]}
u32 (0 to 4,294,967,295)
{"fake": ["u32"]}
{"fake": ["u32", min, max]}
u64 (0 to 18,446,744,073,709,551,615)
{"fake": ["u64"]}
{"fake": ["u64", min, max]}
Signed Integers
i8 (-128 to 127)
{"fake": ["i8"]}
{"fake": ["i8", min, max]}
i16 (-32,768 to 32,767)
{"fake": ["i16"]}
{"fake": ["i16", min, max]}
i32 (-2,147,483,648 to 2,147,483,647)
{"fake": ["i32"]}
{"fake": ["i32", min, max]}
i64
{"fake": ["i64"]}
{"fake": ["i64", min, max]}
Floating Point
f32 (32-bit float)
{"fake": ["f32"]}
{"fake": ["f32", min, max]}
f64 (64-bit float)
{"fake": ["f64"]}
{"fake": ["f64", min, max]}
Usage Notes
- When using ranges, both
minandmaxare inclusive - If no range is specified, the full range of the type is used
- Float types may produce very large or very small numbers without constraints