Arduino gives random numbers in PWM pins

0 to 1023? Show your sketch.