0.1.6 • Published 5 years ago

randombox v0.1.6

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

randomBox

RandomBox

This module creates an object from an array, with a next function that return each time a different random item from the array.

Behavior

When construction of new randomBox, the given array is randomized in a cycle variable, and also backuped in an archive variable. On each randomBox.next() call, the first element of the cycle array is removed and returned. When the cycle array is empty, it is reloaded/randomized from the archive.

0.1.6

5 years ago

0.1.5

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago