<h1 align="center">
    Slump
</h1>
  
<p align="center">
  <em>Minimal generator of randomness.</em>
</p>
  
<p align="center">
    <img src="https://img.shields.io/crates/v/slump?style=flat-square&color=blueviolet&link=https%3A%2F%2Fcrates.io%2Fcrates%slump" alt="Crates.io version" />
    <img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="MIT License" />
  <!-- <img src="https://img.shields.io/badge/Rust-stable-orange?style=flat-square" alt="Rust" /> -->
  <img src="https://img.shields.io/github/last-commit/simon-danielsson/slump/main?style=flat-square&color=blue" alt="Last commit" />
</p>
  
<p align="center">
  <a href="#info">Info</a> •
  <a href="#usage">Usage</a> •
  <a href="#license">License</a>
</p>  
   

---
<div id="info"></div>

## 📌 Information
  
Slump is a minimal weather forecast utility for the terminal.  
  
> [!IMPORTANT]  
> Slump is not AT ALL safe for generating passwords, encryption and the like.
  
---
<div id="usage"></div>
  
## 💻 Usage
    
  
``` bash
cargo add slump
```
  
``` rust
    fn main() {
        let mut rng = Slump::from_time();

        println!("u32: {}", rng.next_u32());
        println!("f32: {}", rng.next_f32());
        println!("r: {}", rng.gen_range(10));

        let mut items = [1, 2, 3, 4, 5];
        rng.shuffle(&mut items);

        println!("sh: {:?}", items);
    }
```
   
---
<div id="license"></div>

## 📜 License
This project is licensed under the [MIT License](https://github.com/simon-danielsson/slump/blob/main/LICENSE).  
  
