Randomising the chance that something will appear

BlitzMax Forums/BlitzMax Programming/Randomising the chance that something will appear

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'd probably do it like this (untested but I'm 99.99% sure this works):

N = Rand(1,100)
Select True
  Case N >=1 And N <=10
    'do stuff
  Case N>=11 And N <=20
    'do other stuff
    '....etc
End Select