Outils pour utilisateurs

Outils du site


fr:code:core:algorithms

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
fr:code:core:algorithms [2012/03/21 16:42] – créée wismerhealfr: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 md4.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 Algorithms.md4(data); Algorithms.md4(data);
Ligne 13: Ligne 13:
  
 === Arguments === === Arguments ===
-  - data - (string) the input data+  - data - (string) les données entrée
  
-=== Returns === +=== Renvoie === 
-  * (string) the calculated hash in hexadecimal form+  * (string) le hachage calculé sous format hexadécimal
  
 === Examples === === Examples ===
Ligne 25: Ligne 25:
  
 ==== md5 ==== ==== md5 ====
-Calculates a md5 hash.+Calculer un hachage md5.
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 Algorithms.md5(data); Algorithms.md5(data);
Ligne 33: Ligne 33:
  
 === Arguments === === Arguments ===
-  - data - (string) the input data+  - data - (string) les données entrée
  
-=== Returns === +=== Renvoie === 
-  * (string) the calculated hash in hexadecimal form+  * (string) le hachage calculé sous format hexadécimal
  
 === Examples === === Examples ===
Ligne 45: Ligne 45:
  
 ==== sha1 ==== ==== sha1 ====
-Calculates a sha1 hash.+Calculer un hachage sha1.
  
 === Syntax === === Syntax ===
Ligne 53: Ligne 53:
  
 === Arguments === === Arguments ===
-  - data - (string) the input data+  - data - (string) les données entrée
  
 === Returns === === Returns ===
-  * (string) the calculated hash in hexadecimal form+  * (string) le hachage calculé sous format hexadécimal
  
 === Examples === === Examples ===
Ligne 65: Ligne 65:
  
 ==== setRandomSeed ==== ==== setRandomSeed ====
-Set the seed for the pseudorandom number generation.+Définit une "graine" pour la pseudo génération aléatoire d'un nombre.
  
-=== 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 "graine" pour la pseudo génération aléatoire d'un nombre
  
-=== Returns === +=== Renvoie === 
-  * (null) nothing+  * (null) rien
  
 === Examples === === Examples ===
Ligne 84: Ligne 84:
  
 ==== randomMax ==== ==== randomMax ====
-Returns the maximum integer value returned by [[#randominteger|randomInteger]].+renvoie la valeur entier maximum pour [[#randominteger|randomInteger]].
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 Algorithms.randomMax(); Algorithms.randomMax();
 </code> </code>
  
-=== Returns === +=== Renvoie === 
-  * (int)  the maximum integer value returned by [[#randominteger|randomInteger]]+  * (int)  la valeur entier maximum pour [[#randominteger|randomInteger]]
  
 === Examples === === Examples ===
Ligne 100: Ligne 100:
  
 ==== randomInteger ==== ==== randomInteger ====
-Returns a random number between and [[#randommax|randomMax]] (inclusiveor between **min** and **max** (inclusive).+Renvoie un nombre aléatoire compris entre et [[#randommax|randomMax]] (inclusou entre **min** et **max** (inclus).
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 Algorithms.randomInteger(); Algorithms.randomInteger();
Ligne 111: Ligne 111:
  
 === Arguments === === Arguments ===
-  - min - (int) the minimum value +  - min - (int) la valeur minimum 
-  - max - (int) the maximum value+  - max - (int) la valeur maximum
  
-=== Returns === +=== Renvoie === 
-  * (int) a random number between and [[#randommax|randomMax()]] (inclusiveor between **min** and **max** (inclusive)+  * (int) un nombre aléatoire compris entre et [[#randommax|randomMax]] (inclusou entre **min** et **max** (inclus).
  
 === Examples === === Examples ===
Ligne 126: Ligne 126:
  
 ==== randomFloat ==== ==== randomFloat ====
-Return a random decimal (floatingnumber between **min** and **max** (inclusive).+Renvoi un nombre décimal aléatoire (flottanteentre **min** et **max** (inclus).
  
-=== Syntax ===+=== Syntaxe ===
 <code javascript> <code javascript>
 Algorithms.randomFloat(min, max); Algorithms.randomFloat(min, max);
Ligne 137: Ligne 137:
   - max - (float) the maximum value   - max - (float) the maximum value
  
-=== Returns === +=== Renvoie === 
-  * (float) a random decimal (floatingnumber between **min** and **max** (inclusive)+  * (float) un nombre décimal aléatoire (flottanteentre **min** et **max** (inclus)
  
 === 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 - (stringcharacter list to choose from (default value: "abcdefghijklmnopqrstuvwxyz0123456789"+    * characters - (chaîneliste des valeurs par défaut à partir de (valeur par défaut: "abcdefghijklmnopqrstuvwxyz0123456789"
-    * minLength - (int) minimal length (default value: 5) +    * minLength - (int) longueur minimum (valeur par défaut: 5) 
-    * maxLength - (int) maximal length (default value: 15)+    * maxLength - (int) longueur maximum (valeur par défaut: 15)
  
-=== Returns ===+=== Renvoie ===
   * (string) a random string   * (string) a random string
  
 === Exceptions === === Exceptions ===
-  * (ParameterCountError) incorrect parameter count+  * (ParameterCountError) paramètre de compteur incorrect
  
 === Examples === === Examples ===
fr/code/core/algorithms.1332348165.txt.gz · Dernière modification : 2021/02/13 11:23 (modification externe)