|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-12-21 14:50 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jun 15 15:00:01 2026 UTC |
this example (of the documentation of mt_srand()) <? // seed with microseconds since last "whole" second mt_srand ((double) microtime() * 1000000); echo mt_rand(); ?> always give the same value. this example work well <? // seed with microseconds since last "whole" second mt_srand (substr(microtime(),2)); echo mt_rand(); ?>