Helper functions for randomness.