UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

6 lines (4 loc) 202 B
export const randomInt = (max = Number.MAX_VALUE) => Math.floor(Math.random() * Math.floor(max)); export const randomFloat = (min = 0, max = Number.MAX_VALUE) => Math.random() * (max - min) + min;