rand_fruits

Crates.iorand_fruits
lib.rsrand_fruits
version0.1.1
sourcesrc
created_at2022-08-27 07:10:06.431448
updated_at2022-08-27 07:30:48.005463
descriptionA library to generate rabdom fruits
homepage
repository
max_upload_size
id653323
size7,464
Arnab Bhattacharya (Arnab28122000)

documentation

README

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.

Commit count: 0

cargo fmt