Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
File
// Copyright 2018-2023 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 };