Beispiel #1
0
 public static bool Opportunity(float rate)
 {
     return(FloatEx.Random() <= rate);
 }
Beispiel #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());
 }