Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
9 events
when toggle format what by license comment
May 9, 2024 at 15:43 comment added George Reith @AlexanderFarber in that case it would never pick min unless Math.random() returns 0 which is extremely unlikely and would make it weighted. floor and +1 doesn't have this problem because Math.random() will never return 1.
Jan 14, 2024 at 15:42 history edited Lior Elrom CC BY-SA 4.0
added 319 characters in body
Nov 13, 2020 at 14:12 comment added Alexander Farber If you take Math.ceil, then +1 can be spared
Jun 20, 2020 at 9:12 history edited CommunityBot
Commonmark migration
Apr 9, 2020 at 14:11 history edited Lior Elrom CC BY-SA 4.0
added 789 characters in body
Jun 6, 2018 at 2:16 history edited Lior Elrom CC BY-SA 4.0
deleted 55 characters in body
Mar 12, 2016 at 21:40 history edited Lior Elrom CC BY-SA 3.0
edited body
Mar 25, 2015 at 2:20 history edited Lior Elrom CC BY-SA 3.0
added 62 characters in body
Mar 25, 2015 at 1:58 history answered Lior Elrom CC BY-SA 3.0