prova così:

srand(time(NULL));

a = rand()%100;
b = rand()%100;
h = rand()%100;

/////////////////////////////////////////////
//////////questo è come esempio
#include<iostream>
#include<time.h>
using namespace std;

int main()


{
srand(time(NULL)); // seed randomization
// now generate and display 10 random numbers 0-10
for(int i = 0; i < 10; i++)


{
cout << "random number: " << rand()%100 << endl;
}
return system("pause");
}

///////////

link
homepage
http://%77%77%77%2e%74%77%6f%72%6b%2e%69%74/
software
http://%77%77%77%2e%74%77%6f%72%6b%2...programmi.html
forum
http://%77%77%77%2e%74%77%6f%72%6b%2...um/default.asp