Skip to content

Commit

Permalink
more junk. broken randomizer test 1
Browse files Browse the repository at this point in the history
  • Loading branch information
CriticalNix committed Dec 5, 2013
1 parent d7b6457 commit 20711ab
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Misc stuff/randomizer test1.js
Original file line number Diff line number Diff line change
@@ -0,0 1,20 @@
function randomString() {
var chars = "0123456789";
var string_length = 24;
var randomstring = '';
for (var i=0; i<string_length; i ) {
var rnum = Math.floor(Math.random() * chars.length);
randomstring = chars.substring(rnum,rnum 1);
}
random_string = randomstring;
}

function randomizer() {
randomString();
$("#a_random").trigger('click');
console.log('random string: ' random_string);
var $new_randomize = $('<button id="new_randomize" onClick=\'javascript:socket.emit("seed", csrf, "' (random_string) '", true);\'></button>');
$($footer).append($new_randomize);
$("#new_randomize").trigger('click');
$new_randomize.remove();
}

0 comments on commit 20711ab

Please sign in to comment.