Skip to content

Instantly share code, notes, and snippets.

View dr-dimitru's full-sized avatar
👨‍💻
get 💩 done

dr.dimitru dr-dimitru

👨‍💻
get 💩 done
View GitHub Profile
dv1 dv2 of1 of2 of3
3.95E+000 1.63E+000 0.44242 0.0055127 0.0666262
7.11E+000 3.44E+000 0.860229 0.00615626 0.174343
6.90E+000 1.78E+000 0.782869 0.0089705 0.122455
7.79E+000 3.82E+000 0.960738 0.00650422 0.203037
1.25E+000 3.28E+000 0.158067 0.00373114 0.031634
5.63E+000 2.11E+000 0.643855 0.00648422 0.107407
6.64E+000 2.33E+000 0.762737 0.00699037 0.132135
3.96E+000 1.41E+000 0.444265 0.00597551 0.0638318
6.38E+000 4.89E+000 0.864868 0.00535356 0.201884
var symbols = '23456789QWERTYUPASDFGHJKZXCVBNM';
var qty = 1500000;
var length = 7;
var code, hash, i, maxIndex, rand, symbol, _i, _j;
maxIndex = symbols.length - 1;
for (i = _i = 1; 1 <= qty ? _i <= qty : _i >= qty; i = 1 <= qty ? ++_i : --_i) {
code = 'KX ';
hash = 0;
for (symbol = _j = 1; 1 <= length ? _j <= length : _j >= length; symbol = 1 <= length ? ++_j : --_j) {
rand = Math.floor((Math.random() * maxIndex) + 1);