Redirecting to Gumbel-Max Trick and Weighted Reservoir Sampling