/hrm-level-inbox-generator

Human Resource Machine inbox generator for testing and benchmarking solutions

Primary LanguageJavaScript

npm Build and Deploy

hrm-level-inbox-generator

Human Resource Machine inbox generator for testing and benchmarking solutions.

Generates a random inbox that is appropriate for a given level.

Methods

.generate(levelNumber)

levelNumber - Number. The level number (1-41).

returns - Array. If the generator doesn't support the given level, a null is returned.

.seed(seed)

seed - Number. Seeds the random number generator to consistently get the same inbox configurations on subsequent .generate() calls.

Example

var generator = require('hrm-level-inbox-generator');

// Tripler Room
var inbox = generator.generate(8); // [ 2, 4, 0, -5 ]