Skip to content

Commit

Permalink
Rename to rand-unique
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxxep committed Nov 2, 2023
1 parent 5ae7c1a commit afad711
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "rand-sequence"
name = "rand-unique"
version = "0.2.0"
edition = "2021"
authors = ["Liam Gray <gmail@liamg.me>"]
description = "A no-std crate for generating random sequences of unique integers in O(1) time."
repository = "https://github.com/hoxxep/rand-sequence"
documentation = "https://docs.rs/rand-sequence"
repository = "https://github.com/hoxxep/rand-unique"
documentation = "https://docs.rs/rand-unique"
license = "MIT OR Apache-2.0"
readme = "README.md"
keywords = ["random", "sequence", "unique", "numbers", "no-std"]
keywords = ["random", "unique", "numbers", "sequence", "integers"]
categories = ["algorithms", "no-std"]
exclude = ["Cargo.lock", "charts/*", ".github"]

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rand-sequence
# rand-unique

Deterministically generate a sequence of unique random numbers. A non-repeating pseudo-random number generator, directly index-able for the nth number in the sequence.

Expand Down Expand Up @@ -55,10 +55,10 @@ assert_eq!(nums.len(), u16::MAX as usize + 1);
Future work could include a more rigorous analysis of the output distribution. For now, the following charts demonstrate the roughly uniform distribution for `RandomSequence<u16>`.

Histogram visualisation of the `RandomSequence` output distribution.
![Histogram demonstrating uniformity of distribution](https://github.com/hoxxep/rand-sequence/raw/master/charts/histogram-u16.png)
![Histogram demonstrating uniformity of distribution](https://github.com/hoxxep/rand-unique/raw/master/charts/histogram-u16.png)

Visual scatter plot of the `RandomSequence` output.
![Scatter plot of RandomSequence output](https://github.com/hoxxep/rand-sequence/raw/master/charts/scatter-u16.png)
![Scatter plot of RandomSequence output](https://github.com/hoxxep/rand-unique/raw/master/charts/scatter-u16.png)

## How It Works

Expand Down

0 comments on commit afad711

Please sign in to comment.