init lottery generate