Utilities for doing random stuff