Is it really random?
Each draw uses crypto.getRandomValues, the same cryptographic random source browsers use for security keys. Simple generators often use “random % range”, which slightly favours low numbers; this one throws away the few values that would cause that bias, so 1–7 is exactly as fair as 1–8. Draws without repeats use Floyd’s sampling algorithm, which stays instant even for ranges in the billions.