Last active
August 29, 2015 14:27
-
-
Save RandomArray/27298c0c09b69a5f6599 to your computer and use it in GitHub Desktop.
A Random Array of Random
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// A Random Array of Random | |
FUNCTION R(){$N=0;FOR($I=1;$I<=64;$I++){$N.=rand(0,1);} | |
RETURN $N;}FOR($I=1;$I<=RAND(0,16);$I++){$A[R()]=R();} | |
print_r($A); | |
// http://sandbox.onlinephpfunctions.com/code/271c6c02aa703dca78ae00d8a00da4aae7181baa | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP Sandbox Link:
http://sandbox.onlinephpfunctions.com/code/271c6c02aa703dca78ae00d8a00da4aae7181baa
** Example Output **