Random that doesn't repeat

I am in the process of trying to create a learn to speak english app.
I have ten actors on a screen. There is an audio prompt for the actor, which the user hears and then clicks the correct actor.
So far so good - however I would like the order that the audio prompts come in to be random. I have applied a random integer to the game and then each actor is a number from 1-10.
But how do I get it not to repeat the same number twice?
I have tried changing the random attribute when the same number is called (and has already been "pressed"). And it works fine at the beginning but when you get down to the last few numbers it freezes.
Any help on this would be much appreciated.
thanks
I have ten actors on a screen. There is an audio prompt for the actor, which the user hears and then clicks the correct actor.
So far so good - however I would like the order that the audio prompts come in to be random. I have applied a random integer to the game and then each actor is a number from 1-10.
But how do I get it not to repeat the same number twice?
I have tried changing the random attribute when the same number is called (and has already been "pressed"). And it works fine at the beginning but when you get down to the last few numbers it freezes.
Any help on this would be much appreciated.
thanks
Comments
What I mean is that rather than triggering the change attribute on 0 sec. is there a way to trigger it on an event Like a change in game score -
When I tried to do this it didn't work?
any help much appreciated.