mort3za / ludo

In-browser "Ludo Game" for playing when there is no internet!
https://mort3za.github.io/ludo
GNU General Public License v3.0
39 stars 1 forks source link

Is dice number really random #14

Closed mjavadhpour closed 5 years ago

mjavadhpour commented 5 years ago

I play for 5 minutes and i don't get 6. I think the random function can be better to provide equal chance for all players. The computer have dice to 6 in 6 or 7 try but i don't get 6.

mort3za commented 5 years ago

Random function in the project is a popular npm package. https://www.npmjs.com/package/mersenne-twister Do you have a better solution?

mjavadhpour commented 5 years ago

No i don't have.