Click here for important information about

VB 2008 - No repeat random number generator

Microsoft Microsoft windows xp home edit...
June 4, 2010 at 03:37:02
Specs: Windows XP
I am creating a version of Deal or No Deal for a school project. However, in order to make sure that each time a case is picked in the game, a random amount of money is knocked out. However, this random number generator needs to be non-repeating so all 26 amounts of money are knocked out.

Im thinking of using some sort of array to acheive this, but am stuck on how exactly to code it. So any advanced users of VB 2008 help would be greatly appreciated :)

See More: VB 2008 - No repeat random number generator

June 4, 2010 at 09:27:22
I don't know VB but you probably want to initialize a container of
all the amounts. Then in each iteration you remove an amount
from a random point in the container. So you need to look up the
documentation and choose a type of container that allows you to
remove an element from the middle of it.

Report •
Related Solutions

Ask Question