Ive brought an array into this function of 100 indexes. I need a way to search each cell with a random number "randx"into the array, and count the number of successful searches. Nos is number of searches. Plaese help me out here, ive been working on this for a while, and im stuck.

Code:
#include "my.h"

void searchNum(int Ar[ ], int* sch, int* suc, float* percent, float* tps, int lo, int range, int nos)
{
int randx;
int i;

for(i=0;i<nos;i++)
{
                randx=(((rand())%range)+lo);
//I DONT KNOW WHAT TO PUT HERE

}                       

}