Crates.io | rand_fruits |
lib.rs | rand_fruits |
version | 0.1.1 |
source | src |
created_at | 2022-08-27 07:10:06.431448 |
updated_at | 2022-08-27 07:30:48.005463 |
description | A library to generate rabdom fruits |
homepage | |
repository | |
max_upload_size | |
id | 653323 |
size | 7,464 |
A Rust library to generate random fruits in the form of a Array with fixed length passed by argument
Add this to your Cargo.toml
:
[dependencies]
rand_fruits = "0.1.1"
Add this to your main.rs
and don't forget to generate some apples to keep Go Lang away 😆
use rand_fruits::generate_fruits;
fn main() {
let arg = 5;
let answer = generate_fruits(arg);
assert_eq!(5, answer.len());
println!("{:?}", answer);
}
rand_fruits is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-MIT, and COPYRIGHT for details.