you need to add kran.js
to your script (copy content or use <script src="https://gist.githubusercontent.com/Sharkbyteprojects/59b739dd14fcdc2ba82d836eff226393/raw/27e9acf454d418db735d84ff2fc5319f1d42a47d/kran.js"></script>
) before use, then
console.log(permut(rns()));
will generate your key and output to console