Make inheritance for random point generator.