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 r = 5; | |
var points_total = 0; | |
var points_inside = 0; | |
while (1) { | |
points_total++; | |
var x = Math.random() * r * 2 - r; | |
var y = Math.random() * r * 2 - r; | |
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
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.0.0.min.js"></script> | |
<script> | |
if (typeof jQuery == 'undefined') { | |
document.write(unescape("%3Cscript src='/js/jquery-2.0.0.min.js' type='text/javascript'%3E%3C/script%3E")); | |
} | |
</script> |