Home > Q&A > body text
I tested and found no difference
~~(0+Math.random()*51)
黄舟2017-07-05 10:45:08
It’s probably useless, maybe it’s a formula that has been preserved.
欧阳克2017-07-05 10:45:08
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)