Page 1 of 1

About random and randomness

Posted: 10 October 2018, 10:27
by sourisdudesert
Dear all,

We performed a full review of the way random is addressed on BGA adaptation.

We found that the situation is quite good, but we think that on this subject we must be absolutely flawless: it happens several times that players criticize BGA randomness, and this is far more easy to answer them with a clear policy on this.

A new section has been added to the documentation about this:
http://en.doc.boardgamearena.com/Main_g ... randomness

The main changes for you are the following:
  • From now, the use of "bga_rand( min, max )" is mandatory for dice. rand(), mt_rand() and random_int() must be avoided.
  • Mysql "rand()" function (ex: "ORDER BY RAND()") should be avoided as it does not provide enough randomness.
Please do not hesitate to ask if anything is unclear.

Re: About random and randomness

Posted: 10 October 2018, 19:49
by vincentt
Hi,

Will you do the updates on existing game or do you need us to make the necessary updates? :)
For DF not a problem as we are working on the next step, but I was thinking of other games ^^

Thanks

Re: About random and randomness

Posted: 13 October 2018, 13:15
by vincentt
Autoreply :)
Souris told me that the modifications are already made in existing games.

Vincent