Hi!

I want to use "random" in Dev C++ so that it chooses between two digits 1 and 2. But I don't seem to know how!

I have tried with

srand(time(NULL))

rand() % 2

but it gives me the numbers 0 and 1. Any one whol could help would be really appreciated.

Thank You very much!

Akmal Safi