Sedertree
Jun 30th, 2002, 02:03 PM
Hello,
Could someone help me with this project. I'm new to VB. (Learning the ropes)
I need to make a utility that can solve a 50/50 lottery duality problem.
This will probably employ boolean as well as a database (Maybe).
What I need is to return values (permutations) of a matrix that is built by combining High and Low as well as Odd and Even digits.
H:
5,6,7,8,9
L:
0,1,2,3,4
O:
1,3,5,7,9
E:
0,2,4,6,8
I need to have two separate frames:
3-Digit
C-123
A-XXX
B-XXX
4-Digit
C-1234
A-XXXX
B-XXXX
If A=H
If B=H Then C=H
If A=H
If B=L Then C=L
If A=L
If B=H Then C=H
If A=L
If B=L Then C=L
--------------------
If A=O
If B=O Then C=O
If A=O
If B=E Then C=E
If A=E
If B=O Then C=O
If A=E
If B=E Then C=E
--------------------
I would like to compare each H/L and O/E Matrix and create a new Matrix with perms of the like digits in each column.
Example:
H/L
464
613
C=H,L,L
5,0,0
6,1,1
7,2,2
8,3,3
9,4,4
O/E
464
613
C=E,O,O
0,1,1
2,3,3
4,5,5
6,7,7
8,9,9
------
The new Matrix for this example would be:
H,L,L
E,O,O
6,1,1
8,3,3
or perms
611-613-631-633
811-813-831-833
----------------------
As an added twist I would like to make an option of turning off one or the other (H/L or O/E) in the calculations. If H/L or O/E is turned off then the value returned will be the opposite of the value of (A) from the frame(s).
Example:
If A=H,L,L then the (off) H/L value for C would be L,H,H
If A=E,O,O then the (off) O/E value for C would be O,E,E
-----------------------------------------------------------------------
For fun I would like to add a third Roulette frame where:
R/B=R,B
O/E=O,E
If A=R
If B=R Then C=R
If A=R
If B=B Then C=B
If A=B
If B=R Then C=R
If A=B
If B=B Then C=B
--------------------
If A=O
If B=O Then C=O
If A=O
If B=E Then C=E
If A=E
If B=O Then C=O
If A=E
If B=E Then C=E
--------------------
So if:
C=B,O
A=R,E
B=B,O
If R/B or O/E is turned off then the value returned for C will be the opposite of the value of (A) from the frame(s).
Example Above:
If A=R,E then the (off) R/B value for C would be R,O
If A=R,E then the (off) O/E value for C would be B,E
----------------------------------------------------------------
I hope that I haven't confused anyone......../George
Could someone help me with this project. I'm new to VB. (Learning the ropes)
I need to make a utility that can solve a 50/50 lottery duality problem.
This will probably employ boolean as well as a database (Maybe).
What I need is to return values (permutations) of a matrix that is built by combining High and Low as well as Odd and Even digits.
H:
5,6,7,8,9
L:
0,1,2,3,4
O:
1,3,5,7,9
E:
0,2,4,6,8
I need to have two separate frames:
3-Digit
C-123
A-XXX
B-XXX
4-Digit
C-1234
A-XXXX
B-XXXX
If A=H
If B=H Then C=H
If A=H
If B=L Then C=L
If A=L
If B=H Then C=H
If A=L
If B=L Then C=L
--------------------
If A=O
If B=O Then C=O
If A=O
If B=E Then C=E
If A=E
If B=O Then C=O
If A=E
If B=E Then C=E
--------------------
I would like to compare each H/L and O/E Matrix and create a new Matrix with perms of the like digits in each column.
Example:
H/L
464
613
C=H,L,L
5,0,0
6,1,1
7,2,2
8,3,3
9,4,4
O/E
464
613
C=E,O,O
0,1,1
2,3,3
4,5,5
6,7,7
8,9,9
------
The new Matrix for this example would be:
H,L,L
E,O,O
6,1,1
8,3,3
or perms
611-613-631-633
811-813-831-833
----------------------
As an added twist I would like to make an option of turning off one or the other (H/L or O/E) in the calculations. If H/L or O/E is turned off then the value returned will be the opposite of the value of (A) from the frame(s).
Example:
If A=H,L,L then the (off) H/L value for C would be L,H,H
If A=E,O,O then the (off) O/E value for C would be O,E,E
-----------------------------------------------------------------------
For fun I would like to add a third Roulette frame where:
R/B=R,B
O/E=O,E
If A=R
If B=R Then C=R
If A=R
If B=B Then C=B
If A=B
If B=R Then C=R
If A=B
If B=B Then C=B
--------------------
If A=O
If B=O Then C=O
If A=O
If B=E Then C=E
If A=E
If B=O Then C=O
If A=E
If B=E Then C=E
--------------------
So if:
C=B,O
A=R,E
B=B,O
If R/B or O/E is turned off then the value returned for C will be the opposite of the value of (A) from the frame(s).
Example Above:
If A=R,E then the (off) R/B value for C would be R,O
If A=R,E then the (off) O/E value for C would be B,E
----------------------------------------------------------------
I hope that I haven't confused anyone......../George