From c859da2a06429b2777d74a36beacef73c6439da2 Mon Sep 17 00:00:00 2001 From: Gabriel_Vieira Date: Mon, 6 May 2024 08:26:43 -0400 Subject: [PATCH] Reto #8 - javascript --- .../javascript/nox456.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Retos/Reto #8 - EL GENERADOR PSEUDOALEATORIO [Media]/javascript/nox456.js diff --git a/Retos/Reto #8 - EL GENERADOR PSEUDOALEATORIO [Media]/javascript/nox456.js b/Retos/Reto #8 - EL GENERADOR PSEUDOALEATORIO [Media]/javascript/nox456.js new file mode 100644 index 0000000000..e917b99e98 --- /dev/null +++ b/Retos/Reto #8 - EL GENERADOR PSEUDOALEATORIO [Media]/javascript/nox456.js @@ -0,0 +1,7 @@ +function randomNumber() { + const date = new Date() + const ms = date.getTime().toString() + return Math.round(ms.slice(ms.length - 3) / 10) +} + +console.log(randomNumber())