ID:161851
 
How can I make a rand() proc that functions just like the normal rand(), only I can make it more likely to generate a number close to the minimum or maximum?

Like, for instance, rand(low = 5, high = 20, weight = 5). Now there is a higher chance that the number will be closer to 5 than 20. Do I make sense?
Check out the pickweight() proc in Lummox JR's article:
http://www.byond.com/members/ DreamMakers?command=view_post&post=32170