Unique random generator to show slide layer
Hi! I have already been through several posts - and I'm using the random number generator to generate a number to correspond with slide layers:
var randomnumber = Math.floor((Math.random()*8)+1);
var player = GetPlayer();
What I'd like to do is improve this so that once it shows a particular layer, it won't show it again...
I am HORRIBLE with Java - so hoping someone can help? I've attached a screenshot to hopefully illustrate what I have done so far! Thank you in advance!!