vec_rand

Crates.iovec_rand
lib.rsvec_rand
version0.1.2
sourcesrc
created_at2021-11-21 10:16:40.959951
updated_at2022-01-06 15:50:49.937756
descriptionVec generator to hold random contents.
homepage
repository
max_upload_size
id485235
size1,949
(allister0098)

documentation

README

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]
Commit count: 0

cargo fmt