Code:
int main()
{
    const double array[5]={};
    sumValues(array,5);
    int number,value;
    for(int i=0;i<number;i++){
        value = (rand()%100)+1;
        value = array[i];
        
        cout<<value<<endl;
    }
    return 0;
}
Hi all. I am trying to populate an array using random numbers; the above code has no errors, but when compiling it does not output any numbers on the screen.

Have I gone wrong somewhere? Or am I on the right track?

I would like to thank you in advance for any advice or help given. Really appreciated.