aboutsummaryrefslogtreecommitdiff
path: root/semestre 2/informatique/td/4- arrays.md
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-02-13 17:42:52 +0100
committerAnhgelus Morhtuuzh <anhgelus@anhgelus.world>2025-02-13 17:42:52 +0100
commita1a5447b8b040b100bad89766066ae4ba8d6d920 (patch)
treef255a6da6b6af8daa1906bd834131052b64a2ca5 /semestre 2/informatique/td/4- arrays.md
parent755d27882e2cb21a5e30b6854bea8e4454f2328d (diff)
Ajout de la semaine des cours du 7 au 13 février
Diffstat (limited to 'semestre 2/informatique/td/4- arrays.md')
-rw-r--r--semestre 2/informatique/td/4- arrays.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/semestre 2/informatique/td/4- arrays.md b/semestre 2/informatique/td/4- arrays.md
new file mode 100644
index 0000000..5c1067d
--- /dev/null
+++ b/semestre 2/informatique/td/4- arrays.md
@@ -0,0 +1,10 @@
+---
+tags:
+ - sorbonne
+ - informatique
+ - td
+semestre: 2
+---
+Pour utiliser du random en C, on a besoin de `stdlib.h`
+- `srand` permet de set la seed (on peut utiliser `time(NULL))` qui est dans `time.h` pour utiliser le timestamp actuel)
+- `rand` donne un aléatoire entre 0 et `RAND_MAX` (une constante prédéfinie) \ No newline at end of file