generator rex written in sand