MCPcopy Create free account
hub / github.com/denoland/std / randomIntegerBetween

Function randomIntegerBetween

random/integer_between.ts:28–36  ·  view source on GitHub ↗
(
  min: number,
  max: number,
  options?: RandomOptions,
)

Source from the content-addressed store, hash-verified

26 * ```
27 */
28export function randomIntegerBetween(
29 min: number,
30 max: number,
31 options?: RandomOptions,
32): number {
33 return Math.floor(
34 randomBetween(Math.ceil(min), Math.floor(max) + 1, options),
35 );
36}

Callers 3

getRandFunction · 0.90
sampleFunction · 0.90

Calls 2

randomBetweenFunction · 0.90
floorMethod · 0.80

Tested by

no test coverage detected