From d3e65b98ca932aef1e05e33d74eaf62be520cdd4 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 18 Aug 2023 16:07:39 +0200 Subject: inventory and items --- resources/js/helpers.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'resources/js/helpers.js') diff --git a/resources/js/helpers.js b/resources/js/helpers.js index 019f822..1622eb2 100644 --- a/resources/js/helpers.js +++ b/resources/js/helpers.js @@ -43,3 +43,10 @@ function mixColors(...colors) { return `rgb(${r}, ${g}, ${b})`; } + +/** + * @returns {string} + */ +function randomString () { + return (Math.random() + 1).toString(36).substring(2); +} -- cgit v1.2.3