Chance

Static Class in Zigurous.Math

Declaration

public static class Chance

Description

Functions for generating random chance values.

Static Methods

RandomSuitReturns a random playing card suit.
RandomCardReturns a random card from a standard 52-card deck.
RandomBoolReturns true or false, with 50-50 odds.
PositiveOrNegativeReturns 1f or -1f, with 50-50 odds.
CoinFlipReturns Heads or Tails, with 50-50 odds.