Open In App

Generating Test Cases (generate() and generate_n() in C++)

Generating test cases for array programs can be a cumbersome process. But the generate and generate_n functions in the STL (Standard Template Library), come handy to populate the array with random values.

 


Article Tags :