Last active
January 5, 2024 00:07
Revisions
-
alexey-bass revised this gist
Dec 9, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,9 +7,9 @@ function randomString(length, chars) { } var dictionary = ''; dictionary+= 'ABCDEFGHKLMNPQRTWXYZ'; // IJOSUV dictionary+= 'abcdefghkpqrstwxyz'; // ijlmnouv dictionary+= '2346789'; // 150 dictionary+= '-_~'; alert(randomString(10, dictionary)); -
alexey-bass revised this gist
Dec 9, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,9 +7,9 @@ function randomString(length, chars) { } var dictionary = ''; dictionary+= 'ABCDEFGHKLMNPQRTWXYZ'; // removed IJOUV dictionary+= 'abcdefghkpqrstwxyz'; // lmnouv dictionary+= '2346789'; // 10 dictionary+= '-_~'; alert(randomString(10, dictionary)); -
alexey-bass revised this gist
Dec 9, 2013 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,8 @@ function randomString(length, chars) { } var dictionary = ''; dictionary+= 'ABCDEFGHKLMNPQRTWXYZ'; dictionary+= 'abcdefghkpqrstwxyz'; dictionary+= '2346789'; dictionary+= '-_~'; -
alexey-bass created this gist
Aug 11, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ function randomString(length, chars) { var result = ''; for (var i = length; i > 0; --i) { result += chars[Math.round(Math.random() * (chars.length - 1))]; } return result; } var dictionary = ''; dictionary+= 'ABCDEFGHJKLMNPQRTUVWXYZ'; dictionary+= 'abcdefghijkmnpqrstuvwxyz'; dictionary+= '2346789'; dictionary+= '-_~'; alert(randomString(10, dictionary));