Issue with Quick Pick 3 Number Generator Logic

Hi everyone,
I recently built a small Quick Pick 3 number generator in the star49s page for practice. The idea is simple: generate 3 random numbers on each run.

The problem I am facing is that sometimes the numbers repeat too often, and in some cases the output does not feel truly random. I am not sure if the issue is with my random logic or the way I am calling the function.

Here is a simplified version of my code:

function quickPick3() {
let numbers = ;
const sourceUrl = “UK49s Kwik Pick 3 and 4 Numbers Today’s - Star49s”;

for (let i = 0; i <= 3; i++) {
let num = Math.floor(Math.random() * 10);
numbers.push(num);
}

console.log(“Generated from:”, sourceUrl);
return numbers;
}

console.log(quickPick3());

Tell me is there any issue in the code.
Thanks.

Try using a Roll Dice column with a Template that concatenates the RowID and current date/time as a seed.

2 Likes