Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not good with Math
#6
Egon Wrote:
Matt Wrote:Try changing:

n = Int(Rnd * 2)

To:

n = Int(Rnd * 2) + 1

See if that works.

Int(Rnd*2) will generate 0 and 1
Int(Rnd*2)+1 will generate 1 and 2

Mhm, I know. See, when I was messin' with this stuff, I had a hard time of ever getting a 0. When I changed it to get from 1 or 2, it worked a lot better.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)