Skip to content

Instantly share code, notes, and snippets.

@Wilto
Created August 14, 2012 15:08
Show Gist options
  • Save Wilto/3350144 to your computer and use it in GitHub Desktop.
Save Wilto/3350144 to your computer and use it in GitHub Desktop.
Nothin’ to see here.
<?php
$stack = array( "user1", "user2", "user3", "user4", "user5", "user6" );
$output = array();
shuffle( $stack );
for ($i = 0; $i <= 2; $i++) {
$output[] = array_pop( $stack );
}
print( "<pre>" );
print_r( $output );
print( "</pre>" );
?>
@tbranyen
Copy link

Georgeous.

@Wilto
Copy link
Author

Wilto commented Dec 11, 2012

Shush, Branyen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment