#numbers #lib #generate #letter #length #kind #set

gen_random

A lib for generating random number by custom its length and kind

3 releases

0.1.4 Jan 15, 2023
0.1.3 Jan 14, 2023
0.1.2 Jan 14, 2023
0.1.1 Jan 14, 2023
0.1.0 Jan 14, 2023

#18 in #kind

MIT license

4KB

gen-random

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.

Example

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();

`


lib.rs:

Gen Random

gen_random is a lib for generating random number by custom its length and kind. It's very easy to generate different randon number, Number/Letter/Symbol or collection of them.

Dependencies

~310KB