generates random curves