Skip to content

Instantly share code, notes, and snippets.

@padraic
Created February 17, 2013 13:26
Show Gist options
  • Save padraic/4971487 to your computer and use it in GitHub Desktop.
Save padraic/4971487 to your computer and use it in GitHub Desktop.
Generating random numbers using mt_rand() or NOT!
<?php
mt_srand(1361152757.2);
for ($i=1; $i < 25; $i++) {
echo mt_rand(), PHP_EOL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment