Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
export
function
random(start: number, end: number): number {
4
return
Math.floor(Math.random() * (end - start) + start);
5
}
Callers
12
_array_decoded_stream_test.ts
File · 0.90
_byte_decoded_stream_test.ts
File · 0.90
sequence_encoder_stream_test.ts
File · 0.90
_text_decoded_stream_test.ts
File · 0.90
text_encoder_stream_test.ts
File · 0.90
byte_encoder_stream_test.ts
File · 0.90
encode_cbor_test.ts
File · 0.90
map_encoder_stream_test.ts
File · 0.90
sequence_decoder_stream_test.ts
File · 0.90
array_encoder_stream_test.ts
File · 0.90
_map_decoded_stream_test.ts
File · 0.90
decode_cbor_test.ts
File · 0.90
Calls
1
floor
Method · 0.80
Tested by
no test coverage detected