I have a function. Every time I call the function, it should return a UNIQUE (for example, if I call this function 90 times, it should have given 90 different numbers) random number under 100.
I am currently doing
var randomNumber = Math.floor(Math.random() * 100);
But, it's not returning unique numbers. It's only returning random numbers.
Thanks in advance.
Edit: It should return some alert after calling 100 times.