Randomization of curve for testing