I’ve been doing codecademy.com’s javascript course and am really slayin’ it!
Tag: javascript
Dice Rolling Web App
So I took the basic random number generator I introduced in my last post and made it into a full fledged web app. You can see it on my github site: dhornbein.github.io/sandbox/rngesus.html The code can be seen within my github.com repository The site has a simple number input where you can set the number of sides. Then …
I’ve created a virtual die!
I’ve been studying Javascript on codecademy.com and was inspired to make a virtual dice today! var diceRoll = function(number){ return Math.floor(Math.random()*number + 1) } It might not look like much but it creates a function called diceRoll, which I can add any number of sides to and it will output a random number from 1 …