Vue.js is a new Vue 3 Tailwind CSS + Vite build. It uses JavaScript array shuffling methods to create Random Number Generators (RNGs) The simplest way to set up RNGs is to create a custom sorting function. We’ll create a mini game that prompts the user to input 3 numbers before loading the RNG deck.
Table of contents
TailwindCSS SetupProject Setup1. RNG with custom sorting shuffle array2. RNG with Fisher-Yates algorithmGame Time!GitHub - jsfanatik/vue-random-number-generatorInstall Tailwind CSS with Vue 3 and Vite — Tailwind CSSSort: