zxmatzx
Advanced OT User
Hi folks, i'm needing help with a function. I need a function that receive 2 integers numbers and return a random number between them with bigger chance to get small numbers instead big numbers. Could work with percents interval?
I've found on internet some ideas, like random weighted numbers generator, i had some troubles trying adapt the code to my necessitys.
I would like understand how this code work, i'll keep trying, but would be nice recive anothers approach to do that.
Thanks.
I've found on internet some ideas, like random weighted numbers generator, i had some troubles trying adapt the code to my necessitys.
I would like understand how this code work, i'll keep trying, but would be nice recive anothers approach to do that.
Thanks.