import { random } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/string.js";
Returns a random string restricted by length
(character-wise).
Examples
Example 1
Example 1
import { random } from "@ayonli/jsext/string";
console.log(random(8)); // "2n8G3z1A" for example
console.log(random(8, "01")); // "10010101" for example