# Weighted random numbers

**URL:** <https://forum.kirupa.com/t/weighted-random-numbers/294859>\
**Category:** flash\
**Created:** [August 20, 2009, 10:58pm UTC](https://forum.kirupa.com/t/weighted-random-numbers/294859 "2009-08-20T22:58:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dandylion13](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dandylion13](https://forum.kirupa.com/u/dandylion13)\
**Post date:** [August 20, 2009, 10:58pm UTC](https://forum.kirupa.com/t/weighted-random-numbers/294859/1 "2009-08-20T22:58:53Z")

</div>

Hello! 🙂

I was wondering if anyone out there can point me to a forumla for generating random numbers that are weighted within a specific range.

I need to generate random numbers between 1 and 100. However, I’d like the most of them to cluster between 1 and 30, with proportionaly less chance of them occuring above 30.

If anyone knows how to approach this, please let me know 🙂

Thank you!
