1.0.5 • Published 6 years ago

controllablerandomness v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

ControllableRandomness

A package that allows you to control the chances of getting a certain number by drawing lines.

Usage

const ControllableRandomness = require('../classes/ControllableRandomness'),
  controllableRandom = new ControllableRandomness(5, 100); // specify min and max here
controllableRandom.set({
  position: 6,
  value: 50
}, {
  position: 20,
  value: 10
}); // this makes a line, two points are needed. 

controllableRandom.generate(); //this generates the number

Todo

  • Make it possible to generate numbers that aren't truncated.
  • Draw curves with multiple points.
1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago