I have a little web app I’m using to test out CSS animations. I’ve got it working but I want more true randomness, so I’m trying to draw from Random.org. How can I take the result from Random.org into a JavaScript variable and use it as an int?
Share
You use
$.ajaxto load the site, thenparseInt(x)and pass that to a function to handle the randomness.For example: