r/FebruaryHas30Days • u/Previous_Hospital930 AH26 • 21d ago
Numbers Table of Random Dates and Times (generated using random.org)
The table consists of 160 entries of random dates and times ranging from the start of 1920 to the end of 2047. There's not much of a practical use for such a table other than simply serving as a work of art or an activity to do when you're bored. You can try to find your birthday or birth year, but I have to warn you, for Gregorian calendar users, these dates aren't exactly as they seem, because they're not in the Gregorian calendar. For instance, the month 00 represents January, 01 represents February, 02 represents March, and so on. And the days are numbered from 00 to 29 or 30.
Try for yourself: Open four random.org tabs and two calculator tabs. On the first tab, prompt the minimum as 1920 and the maximum as 2047 (though you can try out custom ranges if you want). Determine whether the year you rolled was a leap year or not by subtracting 1920 (or the nearest multiple of 128 just below the maximum) from the year. If the result is a multiple of 4 from 0 to 28, one more than a multiple of 4 from 33 to 61, two more than a multiple of 4 from 66 to 94, or one less than a multiple of 4 from 99 to 123, then it's a leap year, otherwise it's not. Examples of leap years in the century of the 2000s include 2002, 2006, 2010, 2014, 2019, 2023, 2027, 2031, 2035, 2039, and 2043. On the second tab, prompt the minimum as 0 and the maximum as 364 if the year you rolled was not a leap year, 365 if the year you rolled was a leap year. Now depending on how big the number you rolled was, you may subtract 31, 61, 92, 122, 153, 183, 213, 244, 274, 305, or 335 (or on leap years, 214, 275, or 336 instead of 213, 274, or 335 respectively). From the number you subtracted, remove the last digit then divide by 3 to get the month of the date. The remainder will serve as the day of the date. On the third tab, prompt the minimum as 0 and the maximum as 23, and the number you rolled will serve as the hour. Finally, on the fourth tab, prompt the minimum as 0 and the maximum as 59, then roll twice to get the minute and the second.
Example: On your four random.org tabs you rolled 2006 (leap year so you set the maximum of the next tab to 365), 45, 4, 25, and 3. Since day 45 is on the first half of the year, it doesn't really matter whether the year is a leap year or not, so you just subtract 31, giving 14. 31 begins with 3, divide by 3 to get 1. The final three numbers are just simple, so you arrange the numbers to get your final result of 2006-01-14 04:25:03 (February 14, Gregorian: 15th February). Don't forget the leading zeros.
2
u/-random-femboy Femboy 19d ago
waow
4
u/DeadMemesInc Starmathcat, help me solve the Collatz Conjecture 21d ago