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

Function random

cbor/_common_test.ts:3–5  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

1// Copyright 2018-2026 the Deno authors. MIT license.
2
3export function random(start: number, end: number): number {
4 return Math.floor(Math.random() * (end - start) + start);
5}

Calls 1

floorMethod · 0.80

Tested by

no test coverage detected