Clean up rand routines.