Вести с торсионных полей

August 28th, 2006

04:15 pm

Мы продолжаем КВН WTF. Из проектной документации:
«This article is available in PDF format. Cost: …»

§508 на них нету.
Tags: ,

06:23 pm

    // creates wellformed password
    
function GeneratePassword() {
        
$consts='bcdgklmnprst';
        
$vowels='aeiou';
        for (
$x=0$x 6$x++) {
            
mt_srand ((double) microtime() * 1000000);
            
$const[$x] = substr($consts,mt_rand(0,strlen($consts)-1),1);
            
$vow[$x] = substr($vowels,mt_rand(0,strlen($vowels)-1),1);
        }
        return 
$const[0] . $vow[0] .$const[2] . $const[1] . $vow[1] . $const[3] . $vow[3] . $const[4];
    }


Смущают меня индексы массива. Что-то тут странное.
Tags:
Powered by LiveJournal.com