i can't for the life of me figure out how to write
num = rand() %. ...
i need a range of 0 to 1
I want to store either zero or one to num. That is my goal. plz help
(i'm a noob obviously)
using namespace std;
int hello = 0;
hello = 1 + rand() % 2;
cout << hello;
Perhaps that may help. srand is similar to rand apart from it seeds it. The time in brackets tells the proram to take the current time of the system clock and produce a randomn event based on it. This program will print a 1 or a 2 depending.
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...