Get a semi-random (randomness not guaranteed) key.

1 call to State::getRandomKey()
State::getRandom dans src/State/State.php
Get a semi-random (randomness not guaranteed) value.

Fichier

src/State/State.php, line 38

Classe

State
Provides AdvAgg State interfaces with a few extra commands.

Namespace

Drupal\advagg\State

Code

public function getRandomKey() {
    $key = array_rand($this->getAll());
    return $key;
}