About random and randomness

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

About random and randomness

Postby sourisdudesert » 10 October 2018, 10:27

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: 58
Joined: 01 September 2017, 17:25

Re: About random and randomness

Postby vincentt » 10 October 2018, 19:49

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: 58
Joined: 01 September 2017, 17:25

Re: About random and randomness

Postby vincentt » 13 October 2018, 13:15

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

Vincent


Return to “Developers”

Who is online

Users browsing this forum: No registered users and 3 guests