Diablo style item spawning

BlitzMax Forums/BlitzMax Programming/Diablo style item spawning

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.

If you have 3 items : Gem, Potion and Weapon.
Gems are given 60% of the time
Potions are given 30% of the time
Weapons are given 10% of the time.
x=Randomise (1,100)
If x>10 then give weapon
elseif X< 10 and > 30 then give potion
else give gem.
I think you could give ranges for select statements which would make it more readable.