Hallo Mini,
Könnt ihr mir n bissl auf die Sprünge helfen?
Pseudocode (hab die JS-Syntax nicht wirklich im Kopf):
switch(math.floor(math.random()*7))
{
case 0: befehl1();
case 1: befehl2();
...
case 6: befehl7();
}
Jonathan
Hallo Mini,
Könnt ihr mir n bissl auf die Sprünge helfen?
Pseudocode (hab die JS-Syntax nicht wirklich im Kopf):
switch(math.floor(math.random()*7))
{
case 0: befehl1();
case 1: befehl2();
...
case 6: befehl7();
}
Jonathan