DBAL/Types/AbstractEnumType.php
public static function getRandomValue()
    {
        $values = self::getValues();
        $randomKey = \random_int(0, \count($values) - 1);

        return $values[$randomKey];
    }
public static function getRandomValue()
    {
        $values = self::getValues();
        $randomKey = \random_int(0, \count($values) - 1);

        return $values[$randomKey];
    }
public static function getRandomValue ( ) { $ values = self :: getValues ( ) ; $ randomKey = \ random_int ( 0 , \ count ( $ values ) - 1 ) ; return $ values [ $ randomKey ] ; }
Get random value for the ENUM field.

@static

@return int|string
Get random value for the ENUM field .