Computer Networking
Databases
Languages
Production Software
Real_Time_Systems
Security

C Randomization

srand(time(0)); //Uses current time as seed for randomization
int number1 = (rand() % 6) + 1
//rand() generates a random unsigned short
//Random number between 0 and 5, but adds one to the end (1-6)