error C2065: 'random' : undeclared identifier

Hi!
I am reza!
I'm just a beginner.
While writting this code i reciev an error.
1
2
3
4
5
6
7
8
9
10
11
//This program generates random numbers.
#include <cstdlib>
#include <ctime>
#define randomize() (srand(time(0)))
#include <iostream.h>
int main(){
	for(int i=0;i<10;cout<<random(25)<<endl , i++);
	randomize();
	cout<<"After call randomize function.\n";
	for(i=0;i<10;cout<<random(25)<<endl,i++);
	return 0;}


i cannot solve it can you help me please!
Thanks!
The function is called rand()
Topic archived. No new replies allowed.