Confused on the modulo bit #467
Unanswered
Epic-Fafnir
asked this question in
Q&A
Replies: 1 comment
-
Let's say the max_number is equal to 5, by using randi() you'll have 0, 1, 2, 3, 4 numbers. By adding 1, that is max_number + 1, each individual number would increase by 1: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Explanation on the dice generator lesson why does it say max_number+1 confused on why that's there what it's supposed to do I know it limits the Randi function but how and the process of why. P.S The app has been really great stop using it for a while cause of exams and my laptop had to get fixed, really beginner-friendly as I am a beginner and allows you to learn at a great pace.
Beta Was this translation helpful? Give feedback.
All reactions