- Joined
- Dec 30, 2013
- Messages
- 7,904
- Reaction score
- 22,686
- Trophies
- 6
- Age
- 33
- Location
- Biblically accurate Hell
- XP
- 27,224
- Country

Hello
So today i'Ve been given a homework and in this, I must create a code where it asks for a int number to the user, then generate that amount of random number between 0 and 99, and then categorize them in three category (between 0-33, 34-66, 67-99)
however, I've been told to not use random in a loop because I would have 100% of those number in the same category
I tryed and indeed, they're all 100% in the same category, always, each try, no matter what i do.
So, I have the loop, I have all the system required, but the opart where it generates a random number
can someone pelase help me??
Ofc, I'll quote this link in my program commentary so teatcher will know where I got my help
thanks
So today i'Ve been given a homework and in this, I must create a code where it asks for a int number to the user, then generate that amount of random number between 0 and 99, and then categorize them in three category (between 0-33, 34-66, 67-99)
however, I've been told to not use random in a loop because I would have 100% of those number in the same category
I tryed and indeed, they're all 100% in the same category, always, each try, no matter what i do.
So, I have the loop, I have all the system required, but the opart where it generates a random number
can someone pelase help me??
Ofc, I'll quote this link in my program commentary so teatcher will know where I got my help
thanks







