Skip to content

Instantly share code, notes, and snippets.

@baba-s
Created December 10, 2013 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baba-s/7885961 to your computer and use it in GitHub Desktop.
Save baba-s/7885961 to your computer and use it in GitHub Desktop.
/// <summary>
/// 専用のランダムクラス
/// </summary>
public static class MyRandom
{
/// <summary>
/// bool型の乱数を取得する
/// </summary>
/// <returns>bool型の乱数</returns>
public static bool RandomBool()
{
return Random.Range(0, 2) == 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment