Skip to content

Instantly share code, notes, and snippets.

@theemstra
Forked from mauris/gist:3629548
Last active August 29, 2015 14:15
Show Gist options
  • Save theemstra/cb2f5a9f0ebed3406816 to your computer and use it in GitHub Desktop.
Save theemstra/cb2f5a9f0ebed3406816 to your computer and use it in GitHub Desktop.
<?php
$randomValue = mt_rand();
$even = $randomValue & ~1;
$odd = $randomValue | 1;
// magical unicorn isn't it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment