A fast riemann solver with constant covolume applied to the random choice method