An Albany man who wore a clown mask and wielded a chainsaw in a Cohoes neighborhood is heading to state prison.