How to get a random number with 'weight'?

BlitzMax Forums/BlitzMax Programming/How to get a random number with 'weight'?

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.

Thanks, i forgot to say that the list of objects to randomize from is dynamic so a IF or Case doesnt work. It has to work for all kinds of weight and object numbers.

Thanks sswift thats what i'm looking for