Sort:  
 8 days ago 

int k=(rand()%101) * (rand()%101) * (rand()%101)+500;
thanks, I fixed it - it should have been like that