All files / text / _test_util.ts

100.00% Branches 0/0
100.00% Lines 5/5
1
2
3
4
5
6
 
x1
x9
x3
x3
x3




// Copyright 2018-2025 the Deno authors. MIT license.
export function generateRandomString(min: number, max: number): string {
  return Array.from({ length: Math.floor(Math.random() * (max - min) + min) })
    .map(() => String.fromCharCode(Math.floor(Math.random() * 26) + 97))
    .join("");
}