• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

generating random strings of letters?

ah, decided to go not-so-random hehe. I just typed sentences without spaces and hit enter every three letters. the grader might get a kick out of it (just data showing that a program works) 😛
 
function newRandom($len) {
$var = "";
$key = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$i = 0;
while ($i < $len) {
$char = substr($key, mt_rand(0, strlen($key)-1), 1);
if (!strstr($var, $char)) {
$var.= $char;
$i++;
}
}
return $var;
}

for($i=0; $i<60; $i++) {
print newRandom(3).'<br />';
}

Variation on a random password generator I use. This will run 60 random combinations of 3 letter length and simple modification will run 100 or any number you want.
 
Back
Top