Combination for a limited set of options - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Combination for a limited set of options

OfiROfiR Posts: 0Member

Hi all,
I'm new here and for days I've been trying to solve this one, will appreciate your help!

  1. I'm using VB6 to program a combination generator of 20 numbered balls in 5 spaces. For example:
    1 2 3 4 5 is one combination
    4 2 6 7 8 is another
    BUT 1 3 2 5 4 is the SAME as the first one (I dont care about the order, just about the combination).

  2. I'll allow the user to "steal" one ball off the bowl so he can type a number between 1-20 and this ball will not be available.
    For example if the user typed 4, the combination 1 2 3 4 5 or 4 9 3 20 1 will not be generated - or any other comb that include the stolen ball.

Thanks in advance!

Sign In or Register to comment.