Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*************
- * Generate the 3 random numbers 3 different ways.
- * Seeded, milliseconds, cpu cycles
- * Seeded includes asking the user what month they were born and prompting them to enter a number 0 - 11.
- * Based on their entry, the program will generate a seed using the following code as a base:
- *
- * int numDays = 0;
- * switch(months){
- * case 0: case 2: case 4: case 6: case 7: case 9: case 11:
- * numDays = 31;
- * break;
- * case 3: case 5: case 8: case 10:
- * numDays = 30;
- * break;
- * case 1:
- * if (((years % 4 ==0) && !(years % 100 == 0)) || (years % 400 == 0))
- * numDays = 29;
- * else
- * numDays = 28;
- * break;
- * default:
- * numDays = 31;
- * break;
- * }
- */
Add Comment
Please, Sign In to add comment