Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
-psr18567yIt is actually random. I'll explain.
See, random is with a low chance of happening in same order again & again. With this function, you'll get a 4 as many times you call it. Now🙂, the chance of that happening all the times is completely random out of all possibilities (1/6)^n. Just the same as if you actually call a real random function to build up n numbers from a set of [1,6].
Haha, just kidding 😂😂 -
niconj3787yIt's an awesome comic! Name the source or at least mention it on the tags (xkcd comics) they deserve the credit for it
-
4 is way too even to be a real random number. A random number should definitely be odd...
-
@niconj Can't edit it anymore, but you are right, next time I will mention it 🙂
So that's how it's done.
undefined