Skip to content

AdriGarry/randomBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

randomBox

Version Languages Top language Total lines Code size Repo size

Pull request Commit Last commit

NPM: https://www.npmjs.com/package/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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published