Weighted random numbers

Hello! :slight_smile:

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 :slight_smile:

Thank you!