Ramp, saw-tooth wave genrator code & connection needed

I'm trying to make ramp,saw-tooth wave genrator using arduino uno,would anybody be willing to help me?

Only if you can provide a proper and complete project description.

Are you aware that anaolg output on an arduino pin is pulse-width modulated? It won't be a real sawtooth - you'll have to filter it.