Added a function to generate random parameter constructors.