Entropy-based random number generation on the frontend