public static int Juice(this HTheme theme) { if (theme != HTheme.Random) { return((int)theme); } lock (RandomThemeLock) return(RandomThemeGenerator.Next(0, 30)); }
public static int Juice(this HThemes Theme) { if (Theme != HThemes.Random) { return((int)Theme); } else { lock (RandomThemeLock) return(RandomThemeGenerator.Next(0, 30)); } }