• Gollum@feddit.deOP
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    5 months ago

    The C standard library function int rand(void) returns a random integer between 0 and RAND_MAX (which should be at least 2^15, depending on the actual implementation).

    Furthermore, there is no integer between 0 and 1.