Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
untitled notebook
node v8.17.0
version:
master
endpoint
share
tweet
const gr = require('@runkit/gagoomp/random-string-generator/4.3.1'); const {randomString, nRandoms, setCharacters} = gr;
const getNewPasswords = howMany => nRandoms(howMany, 15); console.log(getNewPasswords(10).join('\n'));
gr.twoRandoms.toString();
const R = require('ramda'); const cRandoms = R.curry(nRandoms); //=> cRandoms(2)(length) == cRandoms(2, length) const tooRandoms = cRandoms(2); tooRandoms(4)
setCharacters('♠♥♦♣'); tooRandoms(100);
Loading…
no comments
sign in
to comment