Switch to Effects for randomness