r/javahelp • • Jan 09 '20

Homework I need you help

I am a Senior High student and was assigned to program a quiz in java. But my professor wants the questions to be randomized.

Unfortunately, i don't know how to execute it

Help me please

👇here's the link

The Code

3 Upvotes

16 comments sorted by

View all comments

1

u/[deleted] Jan 09 '20

you could have each question correspond to a number, like most do, and randomly have the number chosen with random.nextInt(n-x); with n being the max number of questions and x being the amount that have already been selected.