[ create a new paste ] login | about

Link: http://codepad.org/TiRYbWTy    [ raw code | output | fork ]

PHP, pasted on Dec 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
$array = array();
$x = 0;
while ( true ) {
	$string = str_shuffle('Chuck Norris');
	if (isset($array[$string])) {
		
		echo "Failed (Duplicate) at $x";
		break;
	}
	$array[$string] = 1;
	$x ++;
}

?>


Output:
1
Failed (Duplicate) at 27448


Create a new paste based on this one


Comments: