Crates.io | gen_random |
lib.rs | gen_random |
version | 0.1.4 |
source | src |
created_at | 2023-01-14 02:03:11.707367 |
updated_at | 2023-01-15 02:10:35.427652 |
description | A lib for generating random number by custom its length and kind. |
homepage | https://github.com/SunsJay/gen-random |
repository | https://github.com/SunsJay/gen-random |
max_upload_size | |
id | 758634 |
size | 3,930 |
A rust lib for generating custom random numbers
In most development scenarios, we need to generate random numbers that include letters, numbers, and sometimes sybomls.
So, this lib includes these functions, we just need to set length and kind of randmon number.
use gen_random
// Custom random number's length and kind(number ? letter ? symbol ? or number and letter ...)
let random = Custom::new(5, CharSetKind::Number).generate();
`