64
rated 0 times
[
70]
[
6]
/ answers: 1 / hits: 22115
/ 8 Years ago, thu, september 22, 2016, 12:00:00
I've been reading through some code and noticed a function:
randint: function(n) {
return ~~(Math.random() * n)
}
I know ~ means not but how does ~~ change this return statement?
More From » javascript