Skip to content

Instantly share code, notes, and snippets.

@ezos86
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ezos86/02d4c50fb46c5d949a01 to your computer and use it in GitHub Desktop.
Save ezos86/02d4c50fb46c5d949a01 to your computer and use it in GitHub Desktop.
pvLdBg
<button class="gen">Generate</button>
var x = ['https://cdn2.iconfinder.com/data/icons/picol-vector/32/source_code-512.png','https://thereitis.org/tii-content/uploads/2014/12/code-icon.png.png','http://cdn.flaticon.com/png/256/3797.png'];
function ranGen(z){
var ran = Math.floor((Math.random() * z) + 1);
}
$('.gen').click(function(){
var num = ranGen(3);
$('body').append('<li>'+ num + '</li>');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment