I've got a small app that generates random numbers, but I don't want it to select the same number twice.

Can anyone help out with code.

Cheers.