Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<stats_rand_get_seedsstats_rand_ranf>
^Statistic FunctionsLast updated: Mon, 26 Oct 2026

stats_rand_phrase_to_seeds

(PECL stats >= 1.0.0)

stats_rand_phrase_to_seeds — Generate two seeds for the RGN random number generator

Description

function stats_rand_phrase_to_seeds(string $phrase): array

Generate two seeds for the random number generator from a phrase.

Parameters

phrase

The input phrase

Return Values

Returns an array of two integers.


<stats_rand_get_seedsstats_rand_ranf>
^Statistic FunctionsLast updated: Mon, 26 Oct 2026