mirror of
https://github.com/denoland/std.git
synced 2024-11-21 12:40:03 +00:00
6 lines
199 B
TypeScript
6 lines
199 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
export function random(start: number, end: number): number {
|
|
return Math.floor(Math.random() * (end - start) + start);
|
|
}
|