• drolex
    link
    fedilink
    arrow-up
    18
    arrow-down
    1
    ·
    1 year ago

    Loads of beginners in this thread. Here’s how it’s done in the industry.

    The code:

    return a;

    The test:

    a = rand()%100+1;

    It works, boss.