Skip to content

Instantly share code, notes, and snippets.

@DGaffney
Forked from anonymous/gist:970029
Created May 13, 2011 05:44
Show Gist options
  • Save DGaffney/970040 to your computer and use it in GitHub Desktop.
Save DGaffney/970040 to your computer and use it in GitHub Desktop.
function darken () {
function stringy() {
<body bgcolor="#abcdef">
function getnumber() {
var a = Math.floor(Math.random () * 10);
var b = Math.floor(Math.random () * 10);
var c = Math.floor(Math.random () * 10);
var d = Math.floor(Math.random () * 10);
var e = Math.floor(Math.random () * 10);
var f = Math.floor(Math.random () * 10);
var str1 = "abcdef";
}
alert (str1)
}
}
@DGaffney
Copy link
Author

<script type="text/javascript"> alert('#'+Math.floor(Math.random()*16777215).toString(16)); </script>

function rand_hex() {
'#'+Math.floor(Math.random()*16777215).toString(16);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment