Put in integers for all numbers, and max trials is 60. If the most common number is not in range, it will become the new range. Weight must be 0 or positive. If weight is 0, then it will be purely random. Generally, weight should be a small number, like 5.
This is my first program on scratch! If there are any issues with the program, please comment.