mardi 22 octobre 2019

Is the laravel method "inRandomOrder()" truly random?

My team is building a raffle application where the RNG (random number generator) must be truly random so that it can be approved by the Secretary of State to run online raffles.

$winner = $raffle->entries()->inRandomOrder()->first();
$winning_user = $winner->user()->first();

This is how the code has been implemented and I just wanted to see if anyone could give feedback as to how "truly random" this is, or if we should be approaching this in a different way.

Thanks in advance!




Aucun commentaire:

Enregistrer un commentaire