1 unstable release

0.1.1 Aug 27, 2022
0.1.0 Aug 27, 2022

#1578 in Development tools

MIT license

5KB
118 lines

A Rust library to generate random fruits in the form of a Array with fixed length passed by argument

Usage

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

License

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.


lib.rs:

rand_fruits

get_rand_fruits helps you generate random fruits and takes as an argument Generating fruits are more convinient.

Dependencies

~310KB