summaryrefslogtreecommitdiff
path: root/res/script/functions.js
blob: 246177456ee2dd5f71814c164c8fb781a0530921 (plain)
1
2
3
4
5
6

rand=function(n){ //generate a random number b'w 0-(n-1)
	var t=Math.random();
	return Math.floor(t*n);
}