CalculatePcalCpp working random Fsmin