i'll be happy if some one tell me how to use random function in C++.i'm using bloodshed as dev-c++.this is my instant of using rand() function but it does not work.help me!!
srand(time(0));
magic_number=(rand() %3)+1;