1.0.5 • Published 8 years ago

controllablerandomness v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago