I realized this too. With exactly that section. I think what this whole course does is let you pass to the next section after getting it wrong twice… i think… because my second attempt to that was accepted as correct and it was slightly different from what you got… yet… when i restarted the section and just let the hints guide me, i saw that the correct answer is something different ENTIRELY. The hint told me to look for “Math.ceil(0)” which is defined as “Returns the smallest integer greater than or equal to x”.
Now, because they are fundamentally different from the combination of math floor and math random it took me 30 minutes to even realize that i was supposed to use something else. sigh This has happened on literally ALL coding tutorials. It’s like ALL CODING TUTORIALS don’t understand that because this is not math, that we can’t just assume things because we are literally learning new logic (because we are learning what different Methods are and what they do) so we need to be told EXACTLY when we are going to switch to a new method because most of us are still just following instructions and have NO INTUITION for this yet. At least I don’t, and I am the target audience for this because i have 0 coding knowledge.
This is super frustrating especially seeing that i guess this is a flaw that ALL CODERS and CODING… INSTITUTIONS(?) have that they don’t know how to teach people that truly don’t know anything about code.