getBool()
getBool() : boolean
Generate a random boolean.
Returns
boolean —Randomly generated boolean value.
Interface ArbitraryBaseOutputInterface - Interface for arbitrary base number generation.
getTernary(boolean|integer $asInteger = true) : boolean|integer
Generate a random ternary format (-1, 0, 1).
Note: Passing false
to the $asInteger
parameter will convert values
to null
, false
and true
.
boolean|integer | $asInteger | Flag for returning as integer (default => true). |
Randomly generated ternary value.
getBase64(integer $length = 1, boolean $urlFriendly = false) : string
Generate a random Base64 string.
integer | $length | The internal byte string length (default => 1). |
boolean | $urlFriendly | Flag for using URL friendly output (default => false). |
Randomly generated Base64 RFC 4648 standard string.