An earth-like planet generator