diff --git a/public/language/Language.jsx b/public/language/Language.jsx index 35b003f..825e47e 100644 --- a/public/language/Language.jsx +++ b/public/language/Language.jsx @@ -74,3 +74,13 @@ class Language { const lang = new Language(); export default lang; + +const LanguageTools = { + random: function(someArray) { + return someArray[Math.floor(Math.random() * someArray.length)]; + } +} + +export { + LanguageTools +}