This is a two fold question. I am trying to build a program were I am able to call a function based on the input of a user. Basically the program will ask the user how many sets of random numbers they would like. And based on their answer I would like to call my function based on their answer. Is that possible? Thanks ! My code is below.
#include<iostream>
#include<stdlib.h>
void randomGenerator()
{
    int i;          //loop counter
    int num;        //store random number
    int randomize();    //call it once to generate random number
    for(i=1;i<=10;i++)
    {
        num=rand()%100; //get random number
        std::cout << num << "\t";
    }
}
int main(){
    randomGenerator();
    return 0;
}
 
     
     
    