#random #generator #hold #content #generate

vec_rand

Vec generator to hold random contents

3 releases

0.1.2 Jan 6, 2022
0.1.1 Nov 21, 2021
0.1.0 Nov 21, 2021

#2494 in Algorithms

Download history 193/week @ 2024-07-19 288/week @ 2024-07-26 186/week @ 2024-08-02 236/week @ 2024-08-09 123/week @ 2024-08-16 117/week @ 2024-08-23 132/week @ 2024-08-30 395/week @ 2024-09-06 153/week @ 2024-09-13 227/week @ 2024-09-20 278/week @ 2024-09-27 183/week @ 2024-10-04 159/week @ 2024-10-11 225/week @ 2024-10-18 272/week @ 2024-10-25 251/week @ 2024-11-01

952 downloads per month

MIT license

2KB

Usage

Add this to your Cargo.toml:

[dependencies]
vec_rand = "0.1.0"
let len = 10;

// Pass the type you want to generate to Generics.
// RandVec::generate<i32>(len);
let v = RandVec::generate<u8>(len);

println!(":?", v);
// [107, 58, 138, 135, 112, 216, 235, 226, 68, 104]

Dependencies

~315KB