Esempio n. 1
0
 public static bool Opportunity(float rate)
 {
     return(FloatEx.Random() <= rate);
 }
Esempio n. 2
0
 public static Color OfRandomHue(int?seed = null, float saturation = 1.0f, float value = 1.0f)
 {
     return(new HsvColor(FloatEx.Random(seed), saturation, value).GetRgb());
 }