Im using a random number function to get two random numbers between 219 and 1500. This works as expected but id like for numbers between 1200 and 1500 to be 50% less likely to occur. How can I achieve this?
I did try searching first but there is so much out there about random numbers that its difficult to find anything relevant to my issue.
function getRandomBase (min, max) {
orBase = Math.floor(Math.random() * (max - min + 1)) + min;
document.getElementById("box1").value = orBase;
newBase = Math.floor(Math.random() * (max - min + 1)) + min;
document.getElementById("box3").value = newBase;
}