UNPKG

@chris-lewis/fitbit-utils

Version:

Common utility modules for common tasks across projects.

8 lines (7 loc) 199 B
/** * Random integer in range 0 - max. * * @param {number} max - Maximum value, inclusive. * @returns {number} Random number. */ export const randomInt = max => Math.round(Math.random() * max);