Last active
August 29, 2015 14:15
-
-
Save ezos86/02d4c50fb46c5d949a01 to your computer and use it in GitHub Desktop.
pvLdBg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class="gen">Generate</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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