Random selection for pipes