Задачка по теорверу

Пункт 1, предварительный:
Что напечатает эта программа:
#include <stdio.h>
#include <stdlib.h>
void foo(int i) {
    int j;
    srand48(i);
    while ((j = drand48() * 22)) {
        putchar(j+64);
    }
    putchar('\n');
}

int main() {
    foo(17594951);
    foo(56010574);
    foo(84979338); /* try 16447603 instead */
    return 0;
}


Пункт 2: Насколько сильно нам повезло? (Придумайте способ выразить везение численно.)

This entry was originally posted at http://spamsink.dreamwidth.org/1056952.html. Please comment there using OpenID.