randomgen

A module to generate random value in the range [min, max) or [min, max]

Usage no npm install needed!

<script type="module">
  import randomgen from 'https://cdn.skypack.dev/randomgen';
</script>

README

Randomgen

Installation:

npm install randomgen

Usage:

var random = require('randomgen');
// get a random value in the range [min, max]
random.IncludeMax(0, 10) // 10 may be generated 
// get a random value in the range [min, max]
random.ExcludeMax(0, 10) // High value 10 is excluded