2
I am developing a web project related to a test system A/B, and I need a function that generates random numbers from 1 to 3 without repeating those that have already been generated.
function getRandom(max){ return Math.floor(Math.random() * max + 1); }
What have you programmed ? Have some code ?
– novic
Function getRandom(max)' Return Math.floor(Math.Random() * max + 1); }
– Hector Gabriel Garcia