Implement generation of random polynomial structured testing