var_char:rand
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| var_char:rand [2008/01/09 17:54] – créée frostfall | var_char:rand [2022/09/25 19:11] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== %rand(chiffre)% ====== | ====== %rand(chiffre)% ====== | ||
| ===== Explications ===== | ===== Explications ===== | ||
| - | Cette fonction permet d' | + | Cette fonction permet d' |
| + | |||
| + | |||
| + | ===== Exemple jeu de dés ===== | ||
| + | < | ||
| + | <style type=text/ | ||
| + | TEXTAREA { | ||
| + | background-color : white; | ||
| + | font-family : MS Sans Serif; | ||
| + | font-size : 8px; | ||
| + | } | ||
| + | </ | ||
| + | < | ||
| + | <table cellspacing=2> | ||
| + | <tr height=25>< | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | Appuie sur bouton | ||
| + | Variable[0]=0 | ||
| + | </ | ||
| + | </ | ||
| + | <td width=20> | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | Message(' | ||
| + | // le chiffre sera compris entre 1 et 100 | ||
| + | Variable[0]=%rand(100)%+1 | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | <table cellspacing=2> | ||
| + | <tr height=25>< | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | Automatique | ||
| + | Variable[0]> | ||
| + | </ | ||
| + | </ | ||
| + | <td width=20> | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | Message(' | ||
| + | Variable[0]=0 | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | <table cellspacing=2> | ||
| + | <tr height=25>< | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | Automatique | ||
| + | Variable[0]< | ||
| + | </ | ||
| + | </ | ||
| + | <td width=20> | ||
| + | </ | ||
| + | < | ||
| + | < | ||
| + | Message(' | ||
| + | Variable[0]=0 | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| - | ===== Exemple ===== | ||
| - | Condition(' | ||
| - | Message(' | ||
var_char/rand.1199897650.txt.gz · Dernière modification : 2022/09/25 19:10 (modification externe)