ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Refinery\Random\Group Class Reference
+ Collaboration diagram for ILIAS\Refinery\Random\Group:

Public Member Functions

 shuffleArray (Seed $seed)
 Get a transformation which will shuffle a given array. More...
 
 dontShuffle ()
 Get a transformation which will return the given value as is. More...
 

Detailed Description

Definition at line 28 of file Group.php.

Member Function Documentation

◆ dontShuffle()

ILIAS\Refinery\Random\Group::dontShuffle ( )

Get a transformation which will return the given value as is.

Everything can be supplied to the transformation.

Definition at line 48 of file Group.php.

48  : Transformation
49  {
50  return new IdentityTransformation();
51  }

◆ shuffleArray()

ILIAS\Refinery\Random\Group::shuffleArray ( Seed  $seed)

Get a transformation which will shuffle a given array.

Only arrays can be supplied to the transformation.

The transformation will be shuffled with the given $seed.

!! BEWARE OF THE SIDE EFFECT. This Transformation is not Side Effect free !! The internal state of the PRNG will be advanced on every usage.

Definition at line 39 of file Group.php.

39  : Transformation
40  {
41  return new ShuffleTransformation($seed);
42  }

The documentation for this class was generated from the following file: