I made a number generator app and i coded it so that whenever somebody clicks the button, it shows any random integer from 1 to 90 but the numbers are repeating and i don't want the number to repeat
5 months ago
Hey, what you can do is that as soon as the random number is generated, store the value in "local key value store " (feature available in control -> local data ) . When again a number is generated, call all the values from key store and run a loop to match the generated number with all values of key store.
And if the number does not match with any value, print that number.
I hope this reply will help you.