I am trying to write a code that can generate 3 random integers from 1 to 100. I thought of using array to store the integers, but I have no idea how I am going to access those 3 random integers. I want my code to return something like: 5 92 66. Is there any better way to go about it?
#include <iostream>
using namespace std;
int main()
{
    int nums[100];
    for(int index = 1; index < 101; index++)
    {
        nums[index] = 1;
    }
    return 0;
}
I expect output to be something like: 88 17 3.
 
     
    