The function has to generate a solution for a candidate using greedy random solution? I figure to use void as it not returning anything but to find a random solution for a candidate.
1 2 3 4 5 6 7
void ConstructGreedyRandomizedSolution(int candidate)
{
for(int i = 0; i < (rand()%candidate); i++)
{
cout << i << candidate << endl;
}
}