fr:code:core:algorithms
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
fr:code:core:algorithms [2012/03/21 16:42] – créée wismerheal | fr:code:core:algorithms [2021/02/13 11:23] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Algorithms [En cours de Traduction Wismerheal][WSL] ====== | ====== Algorithms [En cours de Traduction Wismerheal][WSL] ====== | ||
- | Common algorithms. | + | Algorithme commun. |
- | ===== Functions | + | ===== Fonctions |
==== md4 ==== | ==== md4 ==== | ||
- | Calculates a md4 hash. | + | Calculer un hachage |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
Algorithms.md4(data); | Algorithms.md4(data); | ||
Ligne 13: | Ligne 13: | ||
=== Arguments === | === Arguments === | ||
- | - data - (string) | + | - data - (string) |
- | === Returns | + | === Renvoie |
- | * (string) | + | * (string) |
=== Examples === | === Examples === | ||
Ligne 25: | Ligne 25: | ||
==== md5 ==== | ==== md5 ==== | ||
- | Calculates a md5 hash. | + | Calculer un hachage |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
Algorithms.md5(data); | Algorithms.md5(data); | ||
Ligne 33: | Ligne 33: | ||
=== Arguments === | === Arguments === | ||
- | - data - (string) | + | - data - (string) |
- | === Returns | + | === Renvoie |
- | * (string) | + | * (string) |
=== Examples === | === Examples === | ||
Ligne 45: | Ligne 45: | ||
==== sha1 ==== | ==== sha1 ==== | ||
- | Calculates a sha1 hash. | + | Calculer un hachage |
=== Syntax === | === Syntax === | ||
Ligne 53: | Ligne 53: | ||
=== Arguments === | === Arguments === | ||
- | - data - (string) | + | - data - (string) |
=== Returns === | === Returns === | ||
- | * (string) | + | * (string) |
=== Examples === | === Examples === | ||
Ligne 65: | Ligne 65: | ||
==== setRandomSeed ==== | ==== setRandomSeed ==== | ||
- | Set the seed for the pseudorandom number generation. | + | Définit une " |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
Algorithms.setRandomSeed(seed); | Algorithms.setRandomSeed(seed); | ||
Ligne 73: | Ligne 73: | ||
=== Arguments === | === Arguments === | ||
- | - seed - (int) the seed for the pseudorandom number generation | + | - seed - (int) la " |
- | === Returns | + | === Renvoie |
- | * (null) | + | * (null) |
=== Examples === | === Examples === | ||
Ligne 84: | Ligne 84: | ||
==== randomMax ==== | ==== randomMax ==== | ||
- | Returns the maximum | + | renvoie la valeur entier |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
Algorithms.randomMax(); | Algorithms.randomMax(); | ||
</ | </ | ||
- | === Returns | + | === Renvoie |
- | * (int) | + | * (int) |
=== Examples === | === Examples === | ||
Ligne 100: | Ligne 100: | ||
==== randomInteger ==== | ==== randomInteger ==== | ||
- | Returns a random number between | + | Renvoie un nombre aléatoire compris entre 0 et [[# |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
Algorithms.randomInteger(); | Algorithms.randomInteger(); | ||
Ligne 111: | Ligne 111: | ||
=== Arguments === | === Arguments === | ||
- | - min - (int) the minimum | + | - min - (int) la valeur |
- | - max - (int) the maximum | + | - max - (int) la valeur |
- | === Returns | + | === Renvoie |
- | * (int) a random number between | + | * (int) un nombre aléatoire compris entre 0 et [[# |
=== Examples === | === Examples === | ||
Ligne 126: | Ligne 126: | ||
==== randomFloat ==== | ==== randomFloat ==== | ||
- | Return a random decimal | + | Renvoi un nombre décimal aléatoire |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
Algorithms.randomFloat(min, | Algorithms.randomFloat(min, | ||
Ligne 137: | Ligne 137: | ||
- max - (float) the maximum value | - max - (float) the maximum value | ||
- | === Returns | + | === Renvoie |
- | * (float) | + | * (float) |
=== Examples === | === Examples === | ||
Ligne 146: | Ligne 146: | ||
==== randomString ==== | ==== randomString ==== | ||
- | Generates a random string. | + | Génère une chaîne aléatoire. |
- | === Syntax | + | === Syntaxe |
<code javascript> | <code javascript> | ||
Algorithms.randomString({object}); | Algorithms.randomString({object}); | ||
Ligne 155: | Ligne 155: | ||
=== Arguments === | === Arguments === | ||
- object | - object | ||
- | * characters - (string) character list to choose from (default value: " | + | * characters - (chaîne) liste des valeurs par défaut à partir de (valeur par défaut: " |
- | * minLength - (int) minimal length | + | * minLength - (int) longueur minimum |
- | * maxLength - (int) maximal length | + | * maxLength - (int) longueur maximum |
- | === Returns | + | === Renvoie |
* (string) a random string | * (string) a random string | ||
=== Exceptions === | === Exceptions === | ||
- | * (ParameterCountError) incorrect | + | * (ParameterCountError) |
=== Examples === | === Examples === |
fr/code/core/algorithms.1332348165.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)