I tested and found no difference
~~(0+Math.random()*51)
It’s probably useless, maybe it’s a formula that has been preserved.
Who can understand the question written like this? It would be better to write it as Math.floor(Math.random() * 51).
Math.floor(Math.random() * 51)
It’s probably useless, maybe it’s a formula that has been preserved.
Who can understand the question written like this? It would be better to write it as
Math.floor(Math.random() * 51)
.