this post was submitted on 27 Jul 2026
279 points (98.9% liked)
/0
2211 readers
19 users here now
Meta community. Discuss about this lemmy instance or lemmy in general.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If searching online for a JS random number generator code, something like
Math.floor(Math.random() * (max - min + 1) ) + min;is the most common result. If you're lazy or don't care, you just fill in theminandmaxand get that100 - 1 + 1