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
:
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 randfruits::generatefruits;
fn main() { let arg = 5; let answer = generatefruits(arg); asserteq!(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.