I want to create an application that you enter the max number in, then on pressing the button will display a number at random between 1 and the max number.

When pressing the button again, it'll do the same but will never pick a number already drawn, or not untill the programe has been re-set.

Has anyone: -

1) Understood what I've typed above?

if so

2) Anyone got any ideas on how to go about it?

Any help/advice appreciated.

Regards