Encoder Not working

I have a new robot with two encoders one per side. When i try to run a code with the encoders and print the values on the brain the values go crazy. At the beginning of the code i rest the value to 0 yet it still bounces between values of -200 and 600 just randomly. Any suggestions?