MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getRandomInt

Function getRandomInt

src/shared/utils/fs.ts:465–469  ·  view source on GitHub ↗
(min: number, max: number)

Source from the content-addressed store, hash-verified

463}
464
465export function getRandomInt(min: number, max: number) {
466 min = Math.ceil(min);
467 max = Math.floor(max);
468 return Math.floor(Math.random() * (max - min)) + min;
469}
470
471export function mkDirRecursive(folder: string) {
472 const parent = path.dirname(folder);

Callers 15

launchMethod · 0.90
helpers.tsFile · 0.90
getTempProjectFileFunction · 0.90
getTempTestFileFunction · 0.90
dart_cli.test.tsFile · 0.90
createTempFileFunction · 0.90
getLaunchConfigFunction · 0.90
analytics.tsFile · 0.90
extension.tsFile · 0.90

Calls

no outgoing calls

Tested by 3

getTempProjectFileFunction · 0.72
getTempTestFileFunction · 0.72
createTempFileFunction · 0.72