Skip to main content
Go to Latest
File
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.export function randomInt(lowerBound: number, upperBound: number): number { return lowerBound + Math.floor(Math.random() * (upperBound - lowerBound));}
export function randomMultiple(value: number): number { return value * _internals.randomInt(-10, 10);}
export const _internals = { randomInt };