random.c

ds2.10/fluffos-2.16-ds05/testsuite/single/tests/efuns/random.c · 125 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

void do_tests() {
    for (int i = 0; i < 100; i++) {
        ASSERT(random(5) >= 0);
        ASSERT(random(5) < 5);
    }
}

Site Stats

Snippets: 1791
Codebases: 571