Random Question:how to not always repeated the same numbers?
venon_it
Member, PRO Posts: 594
Hi,
in my new application you shake iphone and change image....but sometimes show the same image... the random number sometimes is the same! how to not always repeated the same numbers?
thanks
in my new application you shake iphone and change image....but sometimes show the same image... the random number sometimes is the same! how to not always repeated the same numbers?
thanks
Comments
Code: change game.prevrandnumber to game.randnumber
When (your shake function) change game.randnumber to random(X,X)
if game.randnumber = game.prevrandnumber then change game.randnumber to random(X,X)
Otherwise; change image to XXXXXXX
I think this is what you need, I hope it works
~CTM