Random pipe gen and flapping calibration