Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
WhosyVox authored Apr 22, 2024
1 parent 3b83064 commit 89d5bee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ The functions are split up into three categories: single randoms, lists/arrays o
Every random number function is in the form [x,y) to be fully consistent.


# Single randoms
### Single randoms
|Function | Description|
|-------------------|------------|
number() | returns a random decimal value in the range [0,1) |
numberBetween(x,y) | returns a random value in the range [x,y) |
integerBetween(x,y) | returns a random integer in the range [x,y) |
boolean() | randomly returns either true or false |

# Lists of randoms
### Lists of randoms
|Function | Description|
|----------------------------|------------|
numberList( size ) | returns a `size` sized list of decimal values in the range [0,1) |
numberBetween( size, x, y ) | returns a `size` sized list of random values in the range [x,y) |
integerBetween( size, x ,y ) | returns a `size` sized list of random integers in the range [x,y) |
boolean( size ) | returns a `size` sized list of random boolean values |

# array methods
### array methods
|Function | Description|
|---------------------|------------|
pickFromList( array ) | returns a random element from [0,array.length) (can be undefined for empty/sparse arrays) |
Expand Down

0 comments on commit 89d5bee

Please sign in to comment.