West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 20, 2010, 3:57 pm - IP Logged

The Sum

The Quantum Sums is a multistep process that starts with a known sums distribution and formulates to a single equation for selecting Quantum Sums. This will deal with only the Pick 3 sums; Pick 4 sums are more complicated, however, the basic method for deriving the Quantum Function is generally the same. In addition, this has applications to other distributive phenomena.

Below is a distribution table and chart of Pick 3 Sums. A Pick 3 sum is the addition of the individual numbers in Pick 3 draw and they are only added once; example 3 7 9 has a sum of 3 + 7 + 9 or 19. This could be carried further in what is known as a Root Sum by adding the 1 and 9 to get 10 and then adding 1 and 0 to get 1, but that will not be covered here. You can apply this same method for finding the Root Sums Quantum Function.

Pick 3 Sum Distribution

Sum

Frequency

Chart

0

1

1

3

2

6

3

10

4

15

5

21

6

28

7

36

8

45

9

55

10

63

11

69

12

73

13

75

14

75

15

73

16

69

17

63

18

55

19

45

20

36

21

28

22

21

23

15

24

10

25

6

26

3

27

1

The distribution looks like the familiar Normal Distribution, but it's not. In the next post we'll look at how to find the correct formulae expressions for this distribution.

Note - We'll posting this in chunks so as not to over whelm you while viewing it. Look for further postings.

Presented 'AS IS' and for Entertainment Purposes Only. Any gain or loss is your responsibility. Use at your own risk.

Order is a Subset of Chaos Knowledge is Beyond Belief Wisdom is Not Censored Douglas Paul Smallish Jehocifer

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 20, 2010, 7:18 pm - IP Logged

The Formulae

Below is the table of the Pick 3 Sums. It's highlighted in some key areas that will help in finding the formulae that describe it. The first highlights are the black-white to indicate the symmetry of the distribution in the Sum column. The second highlights are the red-green-blue and gray used to indicate where the distribution breaks quantum continuity; the gray highlight is special due to the overlap of formulae.

Pick 3 Sum Distribution

Sum

Frequency

0

1

1

3

2

6

3

10

4

15

5

21

6

28

7

36

8

45

9

55

10

63

11

69

12

73

13

75

14

75

15

73

16

69

17

63

18

55

19

45

20

36

21

28

22

21

23

15

24

10

25

6

26

3

27

1

Looking at the sequence of the frequency for the sums 0 to 9, it appears to be a function of a special sequence known as the Arithmetic Series. The Arithmetic Series is the sum of a fixed set of numbers that change in a known pattern, typically by a function like n, 2n - 1, or n^{2}. The summed pattern then results in a different equation. In the table, the arithmetic series is determined to be ( n (n + 1) ) / 2. However, due to the offset of the Sum being 1 less than the n value for that corresponding Frequency, the equation becomes ( (n + 1) ((n + 1) + 1) ) / 2 or ( (n + 1) (n + 2) ) / 2 by morphing n --> n + 1. This is to offset the Sum value so it can be used to determine the Frequency value in terms of n.

On the other side of the symmetry, sum 18 to 27 are the same as the 0 to 9 values only reversed. Figuring out how to express this as an equation is fairly simple; by morphing the n value as it relates to the 0 to 9 sequence. That morph is n --> 28 - n and is then plugged into the ( n (n + 1) ) / 2 equation by replacing the n values with 28 - n. The equation is then found as follows: ( (28 - n) ((28 - n) + 1) ) / --> ( (28 - n) (29 - n) ) / 2.

Now, finding the inner sequence of the sums for 10 to 17 is a bit trickier. To find it, we need to know how each quantity is derived for the whole table. This will also support the understanding of how the other sequences relate to each other. We work this by doing an Expansion of Process; starting at a lower more simple equation or method and working to a more complex equation or method.

We begin at a Pick 1 Sums level and increase the Expansion to the Pick 2 Sums and then the Pick 3 Sums. The table below shows what a Pick 1 Sums would look like and it's pretty simple.

Pick 1 Sum Distribution

Sum

Frequency

0

1

1

1

2

1

3

1

4

1

5

1

6

1

7

1

8

1

9

1

The Pick 2 Sums is related to the Pick 1 Sums distribution by a simple offset progression. If the Pick 2 numbers are X Y, then the sum is X + Y. Let X be a Pick 1 sum, Y be separate value, and both be a subset of the Pick 2 set. The progressive increment is shown in the following table.

Pick 2 Sum Distribution

Sum

Subset Frequencies

Frequency

X = 0 to 9

Y = 0

Y = 1

Y = 2

Y = 3

Y = 4

Y = 5

Y = 6

Y = 7

Y = 8

Y = 9

Total

0

1

0

0

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

0

0

0

0

2

2

1

1

1

0

0

0

0

0

0

0

3

3

1

1

1

1

0

0

0

0

0

0

4

4

1

1

1

1

1

0

0

0

0

0

5

5

1

1

1

1

1

1

0

0

0

0

6

6

1

1

1

1

1

1

1

0

0

0

7

7

1

1

1

1

1

1

1

1

0

0

8

8

1

1

1

1

1

1

1

1

1

0

9

9

1

1

1

1

1

1

1

1

1

1

10

10

0

1

1

1

1

1

1

1

1

1

9

11

0

0

1

1

1

1

1

1

1

1

8

12

0

0

0

1

1

1

1

1

1

1

7

13

0

0

0

0

1

1

1

1

1

1

6

14

0

0

0

0

0

1

1

1

1

1

5

15

0

0

0

0

0

0

1

1

1

1

4

16

0

0

0

0

0

0

0

1

1

1

3

17

0

0

0

0

0

0

0

0

1

1

2

18

0

0

0

0

0

0

0

0

0

1

1

The Pick 1 distribution moves in a progressive fashion which then give rise to the total frequency of the Pick 2 distribution. This same process can be carried over to the Pick 3 Sums using the Pick 2 Sums distribution, shown below. If the Pick 3 numbers are X Y Z, then the sum is X + Y + Z. Let X Y be a Pick 2 sum, Z be separate value, and both be a subset of the Pick 3 set.

Pick 2 Sum Distribution

Sum

Subset Frequencies

Frequency

X Y = 0 0 to 9 9

Z = 0

Z = 1

Z = 2

Z = 3

Z = 4

Z = 5

Z = 6

Z = 7

Z = 8

Z = 9

Total

0

1

0

0

0

0

0

0

0

0

0

1

1

2

1

0

0

0

0

0

0

0

0

3

2

3

2

1

0

0

0

0

0

0

0

6

3

4

3

2

1

0

0

0

0

0

0

10

4

5

4

3

2

1

0

0

0

0

0

15

5

6

5

4

3

2

1

0

0

0

0

21

6

7

6

5

4

3

2

1

0

0

0

28

7

8

7

6

5

4

3

2

1

0

0

36

8

9

8

7

6

5

4

3

2

1

0

45

9

10

9

8

7

6

5

4

3

2

1

55

10

9

10

9

8

7

6

5

4

3

2

63

11

8

9

10

9

8

7

6

5

4

3

69

12

7

8

9

10

9

8

7

6

5

4

73

13

6

7

8

9

10

9

8

7

6

5

75

14

5

6

7

8

9

10

9

8

7

6

75

15

4

5

6

7

8

9

10

9

8

7

73

16

3

4

5

6

7

8

9

10

9

8

69

17

2

3

4

5

6

7

8

9

10

9

63

18

1

2

3

4

5

6

7

8

9

10

55

19

0

1

2

3

4

5

6

7

8

9

45

20

0

0

1

2

3

4

5

6

7

8

36

21

0

0

0

1

2

3

4

5

6

7

28

22

0

0

0

0

1

2

3

4

5

6

21

23

0

0

0

0

0

1

2

3

4

5

15

24

0

0

0

0

0

0

1

2

3

4

10

25

0

0

0

0

0

0

0

1

2

3

6

26

0

0

0

0

0

0

0

0

1

2

3

27

0

0

0

0

0

0

0

0

0

1

1

As you can see, the sequence the leads to the total frequency can now be determined by the progression of the sub frequency sequences. The sub frequencies sum together to form the total frequency. Looking at the green highlighted section for sums 10 to 17, the sums frequency is a unique folded or doubled arithmetic sum; where part of the summation is actually a subtraction of a smaller portion of the arithmetic sequence. Example: Sum 11 is the sum of the subset frequencies {8, 9, 10, 9, 8, 7, 6, 5, 4, 3}. That set is the subset of a common denominating set, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}, and that set is the subset of Doubled Arithmetic Sum Superset, {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1}.

Too make this fairly short, the Doubled Arithmetic Sum Superset is use to find the Arithmetic Sum of the 10 to 17 Sums by basically subtracting the stuff we don't need. In the case of the 11 sum, the parts that are subtracted are the individual sums of the following sets: left - {1, 2, 3, 4, 5, 6, 7}, middle - {10}, and right - {2, 1}. Each of those sets can be found mathematically and relative to the sum it is being derived from. The Double Arithmetic Sum is a constant, 2 ( ( 10 (10 + 1) ) / 2 ) --> 2 ( ( 10 (11) ) / 2 ) --> 2 (110 / 2) --> 110. The left value is ( (18 - n) ((18 - n) + 1) ) / 2, middle value is a constant 10, and right value is ( (n - 9) ((n - 9) + 1) ) / 2. Put them all together properly we get, 110 - [ ( (18 - n) ((18 - n) + 1) ) / 2 ] - [ 10 ] - [ ( (n - 9) ((n - 9) + 1) ) / 2 ].

Each of the three equations make up the whole distribution for Pick 3. In the gray highlighted frequencies, the equations are equal at those points. The following are the equations and what they reduce down to going through the math to expand and collect the n terms in each.

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 20, 2010, 8:28 pm - IP Logged

The Table and Graph

To make the equations more useable, we'll replace n with x and set equal to y; shown below.

We can now plug in some values and see how the equations match the actual distribution. The following table shows a range of values for the sums 0 to 27 for each of the equations; color coded to the equation it's from.

Sums

Actual

Three Equations

0

1

1

-107

406

1

3

3

-81

378

2

6

6

-57

351

3

10

10

-35

325

4

15

15

-15

300

5

21

21

3

276

6

28

28

19

253

7

36

36

33

231

8

45

45

45

210

9

55

55

55

190

10

63

66

63

171

11

69

78

69

153

12

73

91

73

136

13

75

105

75

120

14

75

120

75

105

15

73

136

73

91

16

69

153

69

78

17

63

171

63

66

18

55

190

55

55

19

45

210

45

45

20

36

231

33

36

21

28

253

19

28

22

21

276

3

21

23

15

300

-15

15

24

10

325

-35

10

25

6

351

-57

6

26

3

378

-81

3

27

1

406

-107

1

From this we can graph the data and see how the equations match the sums distribution. In the graph below, we see the original sums as a bar and the equations as lines. The points that overlap appear black.

There are two steps that will be posted next. One is we have to solve the three equations for x so they can be merged together smoothly. The other is we need to slice and dice the graph to determine where the Quantum numbers are to be placed within the individual equations. That will allow the three equations to be merged into one.

Note - We'll posting this in chunks so as not to over whelm you while viewing it. Look for further postings.

Presented 'AS IS' and for Entertainment Purposes Only. Any gain or loss is your responsibility. Use at your own risk.

Order is a Subset of Chaos Knowledge is Beyond Belief Wisdom is Not Censored Douglas Paul Smallish Jehocifer

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 20, 2010, 9:06 pm - IP Logged

The X Solutions

Each of the three equation can be solved for x using the Quadratic Equation. This is a well known solution, so we do not have to through it here. If you want to know how it's done or what it is, do a search with your favorite search engine.

Below are the three equations and the solutions for x.

Equation

Solution

We solved for x now because we are going to have solve for it anyway for the final quantum equation. Each of the solutions has two parts, the + side and the - side. For the red and blue solutions, we'll only need one part of the solution; either + or -. These will then combine with both solutions of the green equation; + and -.

How we combine them is determined by the slice and dice of the graph; where the line graphs pass through each sliced and diced section. We'll look at that next.

Note - We'll posting this in chunks so as not to over whelm you while viewing it. Look for further postings.

Presented 'AS IS' and for Entertainment Purposes Only. Any gain or loss is your responsibility. Use at your own risk.

Order is a Subset of Chaos Knowledge is Beyond Belief Wisdom is Not Censored Douglas Paul Smallish Jehocifer

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 20, 2010, 9:46 pm - IP Logged

The Quantum Slice and Dice

Below are the three equations and the solutions for x.

Equation

Solution

The graph below of the equations is used to determine the slice and dice. The slice and dice will occur in two ways, symmetry and function.

First is the symmetry slice; it is dividing the Sums in to equal parts, shown below.

Next is the function dice; it is the dividing of the Frequencies in to two parts that are relatively close to the overlap of the green equation with the red and blue equations. The placement of the dice line is related to how the final quantum function determines the sum and the rounding of the sum number. It's optimally and logically placed; we'll look at that in more detail later.

Both the symmetry slice and the function dice are put together to form the setup for the next post. Below is the graph.

Note - We'll posting this in chunks so as not to over whelm you while viewing it. Look for further postings.

Presented 'AS IS' and for Entertainment Purposes Only. Any gain or loss is your responsibility. Use at your own risk.

Order is a Subset of Chaos Knowledge is Beyond Belief Wisdom is Not Censored Douglas Paul Smallish Jehocifer

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 20, 2010, 10:52 pm - IP Logged

The Quantum Number Assignments

Each quantum slice and function dice section determines what solutions are needed to merge together for the final Quantum Equation. Also, the separate sliced and diced sections are assigned integer variables to identify each area of operation for the Quantum Equation. Below shows the quantum slice assignment of the integer variablei.

The function dice integer variable,j, is shown below.

Each is then overlaid to show them both.

These number assignments will be used with the solutions to determine the final Quantum Equation.

Note - We'll posting this in chunks so as not to over whelm you while viewing it. Look for further postings.

Presented 'AS IS' and for Entertainment Purposes Only. Any gain or loss is your responsibility. Use at your own risk.

Order is a Subset of Chaos Knowledge is Beyond Belief Wisdom is Not Censored Douglas Paul Smallish Jehocifer

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 21, 2010, 1:27 am - IP Logged

The Quantum Morph

This is the fun part of the whole deal, merging the solution together.

First we need to break up the individual solutions. The follow table shows the solutions in a +/- separation. Two of these solutions are not needed because they fall outside the range of sums.

The following solutions are outside the sums range and can be eliminated.

This leaves just 4 solutions to work with and they are arranged in a way to accommodate theiandjquantum numbers.

Each solution is placed on the graph below to show how it relates to theiandjquantum numbers.

The 4 solutions can now be assigned the quantum numbers in the previous table. With quantum number labeled on each row and column, the table below shows the solutions in their proper place.

Quantum Table

i= 0

i= 1

j= 0

j= 1

This leaves one thing to do, merge. Looking carefully, you can see there are some similar parts between each of the solutions. The following image shows the commonality between the solutions.

The Leading Constants set with the ordinal variable position defined as (i, j, L) and +/- significant: {(0, 0, -3), (1, 0, 57), (0, 1, 27), (1, 1, 27)}.

The Radical Constants set with the ordinal variable position defined as (i, j, R_{o}): {(0, 0, 1), (1, 0, 1), (0, 1, 301), (1, 1, 301)}.

The Radical Coefficients set with the ordinal variable position defined as (i, j, R_{e}) and +/- significant: {(0, 0, +8), (1, 0, +8), (0, 1, -4), (1, 1, -4)}.

The Radical +/- Values set with the ordinal variable position defined as (i, j, R_{v}) and +/- significant: {(0, 0, +1), (1, 0, -1), (0, 1, -1), (1, 1, +1)}.

Each of the sets an be reduced to an equation expressed in terms of i and j. The sets and their equations are listed below.

Type

Set

Equation

Leading Constants

{(0, 0, -3), (1, 0, 57), (0, 1, 27), (1, 1, 27)}

L = (60i - 3)(1 - j) + 27j

Radical Constants

{(0, 0, 1), (1, 0, 1), (0, 1, 301), (1, 1, 301)}

R_{o} = 300j + 1

Radical Coefficients

{(0, 0, +8), (1, 0, +8), (0, 1, -4), (1, 1, -4)}

R_{e} = -12j + 8

Radical +/- Values

{(0, 0, +1), (1, 0, -1), (0, 1, -1), (1, 1, +1)}

R_{v} = (-2i + 1)(-2j + 1)

The 4 solutions now become one solution.

Plugging in the equations for each variable; L, R_{o}, R_{e}, and R_{v}, we get the final Quantum Equation; whereiis the Symmetry Quantum andjis the Function Quantum.

Reorder the variables.

The Quantum Equation can be solved foryand is shown next.

iandjare determined by the following bounding conditions.

Thejbounding condition will be needed to do a Quantum Selection; that will be covered in the next post. Also, thexQuantum Equation is used for selection.

Note - We'll posting this in chunks so as not to over whelm you while viewing it. Look for further postings.

Presented 'AS IS' and for Entertainment Purposes Only. Any gain or loss is your responsibility. Use at your own risk.

Order is a Subset of Chaos Knowledge is Beyond Belief Wisdom is Not Censored Douglas Paul Smallish Jehocifer

rainbow lake Canada Member #25177 November 2, 2005 10762 Posts Offline

Posted: February 21, 2010, 1:49 am - IP Logged

Quote: Originally posted by JADELottery on February 21, 2010

The Quantum Morph

This is the fun part of the whole deal, merging the solution together.

First we need to break up the individual solutions. The follow table shows the solutions in a +/- separation. Two of these solutions are not needed because they fall outside the range of sums.

The following solutions are outside the sums range and can be eliminated.

This leaves just 4 solutions to work with and they are arranged in a way to accommodate theiandjquantum numbers.

Each solution is placed on the graph below to show how it relates to theiandjquantum numbers.

The 4 solutions can now be assigned the quantum numbers in the previous table. With quantum number labeled on each row and column, the table below shows the solutions in their proper place.

Quantum Table

i= 0

i= 1

j= 0

j= 1

This leaves one thing to do, merge. Looking carefully, you can see there are some similar parts between each of the solutions. The following image shows the commonality between the solutions.

The Leading Constants set with the ordinal variable position defined as (i, j, L) and +/- significant: {(0, 0, -3), (1, 0, 57), (0, 1, 27), (1, 1, 27)}.

The Radical Constants set with the ordinal variable position defined as (i, j, R_{o}): {(0, 0, 1), (1, 0, 1), (0, 1, 301), (1, 1, 301)}.

The Radical Coefficients set with the ordinal variable position defined as (i, j, R_{e}) and +/- significant: {(0, 0, +8), (1, 0, +8), (0, 1, -4), (1, 1, -4)}.

The Radical +/- Values set with the ordinal variable position defined as (i, j, R_{v}) and +/- significant: {(0, 0, +1), (1, 0, -1), (0, 1, -1), (1, 1, +1)}.

Each of the sets an be reduced to an equation expressed in terms of i and j. The sets and their equations are listed below.

Type

Set

Equation

Leading Constants

{(0, 0, -3), (1, 0, 57), (0, 1, 27), (1, 1, 27)}

L = (60i - 3)(1 - j) + 27j

Radical Constants

{(0, 0, 1), (1, 0, 1), (0, 1, 301), (1, 1, 301)}

R_{o} = 300j + 1

Radical Coefficients

{(0, 0, +8), (1, 0, +8), (0, 1, -4), (1, 1, -4)}

R_{e} = -12j + 8

Radical +/- Values

{(0, 0, +1), (1, 0, -1), (0, 1, -1), (1, 1, +1)}

R_{v} = (-2i + 1)(-2j + 1)

The 4 solutions now become one solution.

Plugging in the equations for each variable; L, R_{o}, R_{e}, and R_{v}, we get the final Quantum Equation; whereiis the Symmetry Quantum andjis the Function Quantum.

Reorder the variables.

The Quantum Equation can be solved foryand is shown next.

iandjare determined by the following bounding conditions.

Thejbounding condition will be needed to do a Quantum Selection; that will be covered in the next post. Also, thexQuantum Equation is used for selection.

Note - We'll posting this in chunks so as not to over whelm you while viewing it. Look for further postings.

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 21, 2010, 4:51 am - IP Logged

The Quantum Selection

The Quantum selection is made by working from the y value of a solution to arrive at an x. In classical selection methods, typically the means of deriving a number or set of numbers by deriving from the x value and was a restriction based on a bulk frequency distribution. As an example, the sums distribution would be used to concentrate on the bulk of the sums frequency. The orange bars show the range of sums that would concentrated on. The x value in this case would be the Sum and the y value the Frequency.

In Quantum selection, we come from the y value and find the x. This requires a randomization of the quantum numbers, i and j, in the Quantum Equation; because they are integers of 0 and 1 it's like a coin flip. The i symmetry quantum is evenly weighted on both sides and the j function quantum is offset weighted towards the 0 value. The offset is the result of where the three functions closely overlap and the need to round the x value to an integer for the resulting Sums value.

As we have stated before the j bounds are needed to make the weighting offset. Below is the i and j bounds.

The j function quantum has a value of 0 for about 80.2% of the flips and a value of 1 for about 19.8% of the flips. 60.375 is the cutoff point for y due to the need to have a value that is rounded properly. At a sum value of 9.5 a switch from the red line to the green has to happen. Also, the rounded value for x becomes the sum value. At 9.5 and above, it rounds to 10; below 9.5 it rounds to 9. The 9.5 x value becomes a 60.375 y value wheni = 0or1, andj = 0.

To do a Quantum Pick, first randomized a y value to determine the j function quantum. Next, randomize the i symmetry quantum to determine what side of the symmetry to select a Sum. Below shows the process coming in from the Frequency side passing through the Quantum Equation and arriving at the Sum side

Using the Quantum Equation below and randomizing the y value to get a j value and randomizing the i value a simple program function can be created.

The following code is in Visual Basic and can be applied to Microsoft Excel if you how to setup a VB macro.

Function QuantumSum() AsInteger

Dim c, i, j AsInteger

Dim x, y AsDouble

'Randomize the j Function Quantum Number through a random y value.

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 21, 2010, 6:00 am - IP Logged

The One Hit Wonder Application

You probably don't know it, but our One Hit Wonder Table is Quantum Sums driven and it goes a little something like this.

There are two kinds of computation that can be done on lottery draws. The first is an inline computation; this just deals with the single draw itself. It's like the typical sum that can be done a single draw. Example, if a Pick 3 draw is 1 2 3, the sum is 6. The table list next shows some draws and the inline calculations.

Pick 3

inline ->

Sum

2

7

0

inline ->

9

1

8

9

inline ->

18

3

5

2

inline ->

10

The other kind of computation that can be done is insequence. This is a draw to draw calculation. An example of the insequence is shown in the table below.

Pick 3

i n s e q u e n c e ¯

2

7

0

1

8

9

3

5

2

¯

¯

¯

Sum

6

20

11

The nice thing about this kind of calculation is it can be projected into the future draws. Below is a possible projection of the previous table.

Pick 3

i n s e q u e n c e ¯

1

8

9

3

5

2

X

Y

Z

¯

¯

¯

Sum

?

?

?

The sums in this case can be Quantumly Driven with the Quantum Sums Equation and a reverse process find can be done to determine the possible X, Y, and Z outcomes for the next draw.

As an example in the first column, the Sum = 1 + 3 + X. X can be found in the equation, X = Sum - 1 - 3 and the Sum is then substituted by a Quantum Sums Selection. The following code is a Visual Basic function we use to get the One Hit Wonder Table.

Function Rand_SUM(ByVal a AsInteger, ByVal b AsInteger) AsInteger

If (Not ((a >= 0) And (a <= 9)) OrNot ((b >= 0) And (b <= 9))) Then

Rand_SUM = 0

ExitFunction

EndIf

Dim c, i, j AsInteger

Dim x, y AsDouble

Dim NumberFound AsBoolean

NumberFound =False

Do

'Randomize Function Quantum Number - j through random y value

West Concord, MN United States Member #21 December 7, 2001 3675 Posts Online

Posted: February 21, 2010, 12:19 pm - IP Logged

Repost the last. I see there is a possible bug in the code as is. The problem is highlighted in Bold.

_______________________________

If (Not ((a >= 0) And (a <= 9)) Or Not ((b >= 0) And (b <= 9))) Then Rand_SUM = 0 Exit Function End If Dim c, i, j As Integer Dim x, y As Double Dim NumberFound As Boolean NumberFound = False Do 'Randomize Function Quantum Number - j through random y value y = 75.25 * Rnd() If y < 60.375 Then j = 0 Else j = 1 End If 'Randomize Symmetry Quantum Number - i If Rnd() < 0.5 Then i = 0 Else i = 1 End If x = ((60 * i - 3) * (1 - j) + 27 * j + (1 - 2 * i) * (1 - 2 * j) * System.Math.Sqrt(1 + 300 * j + (8 - 12 * j) * y)) / 2 c = System.Math.Round(x, 0) - a - b If (c >= 0) And (c <= 9) Then NumberFound = True Loop Until NumberFound Rand_SUM = c _______________________________

Rand_SUM = c needs to be moved to that position in the code.

Not a problem in the real code.

The LP Editor reformed the list when it was posted.

I double checked it before and after it was reposted and I had to edit this post also.

Presented 'AS IS' and for Entertainment Purposes Only. Any gain or loss is your responsibility. Use at your own risk.

Order is a Subset of Chaos Knowledge is Beyond Belief Wisdom is Not Censored Douglas Paul Smallish Jehocifer