From 0b882c65e8415901673e12c31aa900f42f007167 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 13 Sep 2021 12:15:42 +0200 Subject: add new subtitles --- frontend/app/utils/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontend/app/utils') diff --git a/frontend/app/utils/index.js b/frontend/app/utils/index.js index 95660c5..fc12ee3 100644 --- a/frontend/app/utils/index.js +++ b/frontend/app/utils/index.js @@ -103,6 +103,8 @@ export const dist = (x1, y1, x2, y2) => Math.sqrt(Math.pow(x1 - x2, 2) + Math.po export const mod = (n, m) => n - (m * Math.floor(n / m)) export const angle = (x1, y1, x2, y2) => Math.atan2(y2 - y1, x2 - x1) +export const randint = n => Math.floor(Math.random() * n) + /* URLs */ export const sha256_tree = (sha256, branch_size=2, tree_depth=2) => { -- cgit v1.2.3-70-g09d2