RESOLU !!! - Code:
-
set essai to random number from 1 to 3
if essai = 1 then
display dialog "C'est 1"
else if essai = 2 then
display dialog "C'est 2"
else if essai = 3 then
display dialog "C'est 3"
end if
Désloé pour le post. mais peut-être que j'ai bientôt une autre question..
=========
Bonjour ! voici ma question:
Je souhaire créer un script qui fait cela :
1. prend un chiffre au hasard (de 1 à 3)
2.si ce chiffre est 1 alors display dialog "1"
3.si ce chiffre est 2 alors display dialog "2"
4.si ce chiffre est 3 alors display dialog "3"
Voilà j'ai essayé ce code mais sans succès :
- Code:
-
random number from 1 to 3
if (random number) = 1 then
display dialog "C'est 1"
else if (random number) = 2 then
display dialog "C'est 2"
else if (random number) = 3 then
display dialog "C'est 3"
end if
Voila merci