private int GetNextRestingWheelSlice() { //Converts slices in a string to a json then deserializes and then based on the probability of each it retruns an int. return(RndGen.probabilityBasedRnd(WheelJsonHelper.GetWheelSlicesFromString(tempWheel.AllWheelSlices) .Select <WheelSliceContainer, string>(x => x.probability.ToString()).ToArray())); }