Generalized monotonic regression using random change points