C#
Unity

C# True False 確率で返すメソッド

More than 1 year has passed since last update.
private bool isTrueOrFalse()
{ 
    System.Random gen = new System.Random(); 
    int prob = gen.Next(100); 
    return prob <= 40; 
}