Code to generate galaxy redshift distributions using correlation function measurements