Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

random string

const randStr = (length, min, max) =>  String.fromCharCode(...Array(length).fill().map(() => Math.floor(Math.random() * (max - min + 1)) + min))
console.log(randStr(10, 65, 90));
console.log(randStr(10, 97, 122)) //output: "jxqjxqjxqj")); between lowercase a
// z (10 letters)

Source by www.kindacode.com #
 
PREVIOUS NEXT
Tagged: #random #string
ADD COMMENT
Topic
Name
1+3 =