Is there something wrong with the random generator in Excel?
Do not place "randomize" inside a loop.
Use it just before the loop starts.
--
Jim Cone
Portland, Oregon USA
"JasonK"
wrote in message
...
TIA --
I'm running 2003.
I've created a spreadsheet that plays craps. I've written a lengthy
macro in old basic language that runs fine. It rolls 2 dice, sums the
total, places wagers in columns and totals winners and losers and
keeps a running total of a bankroll. It's designed to play a specific
way that I saw some one play who happened to be winning a lot of
money.
When I call the random generator, "Randomize" on a certain line, the
player wins consistently. When I move the Randomize line down a few
lines of code, the house wins consistently.
Is there something inherently wrong with the Random generator in
Excel? Is there a better way to call a Random number that
"Randomize"? I used to use "Randomize Timer" with the old basic
language. That doesn't seem to make a difference here.
Thanks for your help,
JasonK
|