Forge Home

interval

Returns an array of evenly spaced but randomly selected numbers

14,568 downloads

14,568 latest version

3.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.0.1 (latest)
released Jan 25th 2013
This module has been deprecated by its author since Mar 28th 2019.

The reason given was: No longer maintained, repo scheduled for deletion

Start using this module

Documentation

ploperations/interval — version 0.0.1 Jan 25th 2013

puppet-interval

Adds a Puppet function to generate array of evenly spaced but randomly selected numbers

Usage:

interval(count, max)
  • count: the number of values to return
  • max: the upper limit of the random numbers, exclusive

Example:

# Generate three random numbers between 0 and 60
$arr = interval(3, 60)
# => [19, 39, 59]