Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 914 Bytes

ABOUT.md

File metadata and controls

17 lines (12 loc) · 914 Bytes

randomcrap

This is a dependency free random crap generator. Currently it handles getting random simple random ints, but I will be adding stuff to it as I need it for my other projects.

This has more entropy than Math.random() but isn't going to be adequate for crypto. For that I suggest GRC javascript peudo-random number generator or Web Cryptography API.

Planned additions

  • random int
  • random from set
  • random float
  • random alpha
  • random alpha numeric
  • random emoji

API

This is meant to be a flexible yet not cryptography sound random number generator. The numbers should look good, and the bias is adjustable. A high bias will yield higher random numbers from sets. This bias can be set through the constructor or through a setter function.