It would probably be fastest to put your random numbers into an array, and once you have all the ones you want in an array, then move them into the listbox. Searching and removing from a listbox will be slower than doing the same operation on an array, though it may be faster in .NET than it was in VB6.