Hi there, I have a program that gives students math questions, but I want to add a feature so if the teacher only wants to give the student a certain number then it will remove the rest. The program has a max of 20 questions in a listbox called QList and all items added are numbered 1-20

so it is like Qlist.additem "1"....etc to 20

But what I would like to do is be able to randomly remove a certain number of numbers from that listbox.

For example, all questions are loaded, but say a teacher wants only 10 questions. I want the program to randomly remove 10 items from the list.

I know you can go Qlist.removeitem (index number of item), but I either need to be able to randomize the listbox items from the start so they are out of order and then remove index 0-9, or randomly pick 10 items to get rid of.

All help is duly appreciated!