up Inquisit Language Reference

randBernoulli function

Generates a random number according to the discrete probability function.

Member of

<global>

Syntax

randBernoulli(p)

Return Type

number

Parameters

Name Type Description
p number The probability of generating true.

Remarks

Examples


Copyright Millisecond Software, LLC. All rights reserved.