whitespace cleanup
Correct #rand to return nil when set is empty