ICE Key Generator: Difference between revisions
Jump to navigation
Jump to search
m (more letters) |
m (seed) |
||
Line 6: | Line 6: | ||
for(var x=0;x<=7;x++) | for(var x=0;x<=7;x++) | ||
{ | { | ||
document.write(chars.charAt(Math.round(Math.random()*l))); | document.write(chars.charAt(Math.round(Math.random(new Date().getSeconds())*l))); | ||
} | } | ||
document.write('</font>'); | document.write('</font>'); | ||
</script></pre> | </script></pre> |
Revision as of 17:53, 17 May 2006
Source code
<script language="JavaScript" type="text/javascript"> var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()_+-=[]{};/., ~`:<>?'; var l = chars.length-1; document.write('<font style="font-size:5em">'); for(var x=0;x<=7;x++) { document.write(chars.charAt(Math.round(Math.random(new Date().getSeconds())*l))); } document.write('</font>'); </script>