要画曲线,关系式是y = Asin(x),x是从temp2-temp3的随机数,表示度数;问题是point[j].y总等于0啊?因为sin取值是从-1到1的,就是说得到的值都是绝对值小于1的,再(int)后,是不是就总等于0了?我该怎么改呢?
point[j].yfor (int i = 0;i<100;i++)
{
   for(int j = 0;j<50;j++)
   {
     int randNum = temp2+rand()%(temp3-temp2+1);
     point[j].x = rect.left+(int)(nWidth/m_smjt)*i+(int)(nWidth/m_smjt/50*j);         
     point[j].y =(int)(Asin(randNum/180*pi)*nHeight/20);



   }

   pcontrolDC->Polyline(point,j);

}