> if we figure out where they go and their exact values.
The first idea was bad ie being determined at the head of NoParams in the 'If OneTime...'.
The second idea placed the determination at the head of the function with a once only calculation via Factors.
However, asking the same question on each entry is expensive so I looked at alternatives. First was a Global UDT. Rnd() took twice as long. I then looked at a Class where the determination was executed in a Constructor Method and the values placed in Instance variables. These were got via a Method's value. Rnd2() came in at 4500ms as opposed to less than 300ms. That's right - 4500ms. Bit of an eye opener. There are more and more reasons coming to me to use objects but speed is not one of them - so it seems. I then created a Macro and determined the Factors into Globals. This halved the improvement. So, asked at the head of the function is the fastest so far.
Their exact values? Don't understand you, there.
Come to think of it having two identical mwcRandoms should have been expected. Of course, we won't get two mwcRandoms and two mwcCarrys the same else the the mwc will will freeze up.
> The CASE 2 Rnd2mizeCrypto asm doesn't match the original PB code output.
What do you mean by output? I checked the output from CASE 2 and they were the same ie when rndE was overwritten by the default sequence values both sets of code read the values correctly. If you are comparing the final output may be your two sets of code differ from the end of CASE 2 to the surface.
The first idea was bad ie being determined at the head of NoParams in the 'If OneTime...'.
The second idea placed the determination at the head of the function with a once only calculation via Factors.
However, asking the same question on each entry is expensive so I looked at alternatives. First was a Global UDT. Rnd() took twice as long. I then looked at a Class where the determination was executed in a Constructor Method and the values placed in Instance variables. These were got via a Method's value. Rnd2() came in at 4500ms as opposed to less than 300ms. That's right - 4500ms. Bit of an eye opener. There are more and more reasons coming to me to use objects but speed is not one of them - so it seems. I then created a Macro and determined the Factors into Globals. This halved the improvement. So, asked at the head of the function is the fastest so far.
Their exact values? Don't understand you, there.
Come to think of it having two identical mwcRandoms should have been expected. Of course, we won't get two mwcRandoms and two mwcCarrys the same else the the mwc will will freeze up.
> The CASE 2 Rnd2mizeCrypto asm doesn't match the original PB code output.
What do you mean by output? I checked the output from CASE 2 and they were the same ie when rndE was overwritten by the default sequence values both sets of code read the values correctly. If you are comparing the final output may be your two sets of code differ from the end of CASE 2 to the surface.
Comment