About random and randomness

Game development with Board Game Arena Studio
Post Reply
User avatar
sourisdudesert
Administrateur
Posts: 4630
Joined: 23 January 2010, 22:02

About random and randomness

Post 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.
vincentt
Posts: 247
Joined: 01 September 2017, 17:25

Re: About random and randomness

Post 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
vincentt
Posts: 247
Joined: 01 September 2017, 17:25

Re: About random and randomness

Post by vincentt »

Autoreply :)
Souris told me that the modifications are already made in existing games.

Vincent
Post Reply

Return to “Developers”