public static void RandomOffset(this EntityUid entity, float min, float max) { DebugTools.AssertNotNull(entity); DebugTools.Assert(min <= max, $"Minimum value ({min}) must be smaller than or equal to the maximum value ({max})"); entity.RandomOffset(min, max, min, max); }
public static void RandomOffset(this EntityUid entity, float value) { value = Math.Abs(value); entity.RandomOffset(-value, value); }