UNPKG

@miketmoore/maze-generator

Version:

This is a javascript library, written in TypeScript that generates a maze data structure.

10 lines (9 loc) 292 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.randInRange = void 0; const randInRange = (min, max) => { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min)) + min; }; exports.randInRange = randInRange;