this post was submitted on 14 Feb 2026
454 points (99.8% liked)
Programmer Humor
30700 readers
2318 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Pretty sure many codebases running today (even JS ones) are older
Math.random() was always in the spec: https://ecma-international.org/wp-content/uploads/ECMA-262_1st_edition_june_1997.pdf
Remember IE? Yeah. Probably responsible for a lot of now-superfluous things like this theory suggests.
Gotta admit, didn't think it was that old
How many JS codebases are over 30 years old? Can you name even one?
And? I don't know how to check but I'd guess math.random was included from the beginning.