/genum

CLI for Random Number Generation using Rust

Primary LanguageRustGNU General Public License v3.0GPL-3.0

Genum

Genum is a Rust program that allows you to generate various types of random data. You can install it on your system and use it through the command line.

Features

  • Generate random integers, floating-point numbers.
  • Customize the range.

Installation

To install Genum, you'll need to have Rust installed on your system. If you don't have Rust installed, you can get it from rust-lang.org.

Building from Source

If you prefer to build Genum from source, follow these steps:

  1. Clone the repository:
git clone https://github.com/srvshg/genum.git
  1. Change to the root directory of the project:
cd genum
  1. Build the project to create a binary:
cargo build --release
  1. Run the application:
./target/release/genum

Usage

After installing or building Genum, you can use it from the command line. Here are some examples:

Generate a random integer

genum

Generate a random floating-point number

genum -f

Customize the range of generated integers

genum --min 10 --max 100

Generate an even integer

genum even

Generate a odd integer

genum odd