LimeSurvey API - Master branch

mersenne

Table of Contents

Classes

MersenneTwister
Custom random algorithm to get consistent behaviour between PHP versions.

Functions

setSeed()  : void
Set seed for this response If there is no seed, create a new one Also inits the twister.
shuffle()  : array<string|int, mixed>
Shuffle an array using MersenneTwister Argument NOT called by reference!

Functions

setSeed()

Set seed for this response If there is no seed, create a new one Also inits the twister.

setSeed(int $surveyid) : void
Parameters
$surveyid : int

shuffle()

Shuffle an array using MersenneTwister Argument NOT called by reference!

shuffle(array<string|int, mixed> $arr) : array<string|int, mixed>
Parameters
$arr : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results