# prob proc

Source: https://ref.dm-lang.org/proc/prob

### Format
> `prob(P)`

### Returns
> 1 with probability P percent; otherwise 0

### Args
> P: A number.

### See also
- [pick proc](https://ref.dm-lang.org/proc/pick.md)
- [rand proc](https://ref.dm-lang.org/proc/rand.md)
- [rand_seed proc](https://ref.dm-lang.org/proc/rand_seed.md)
- [roll proc](https://ref.dm-lang.org/proc/roll.md)
