Brian Dunning's FileMaker Custom Functions

RandomBinomial ( probability ; trials )

Returns random values from a Binomial distribution

  Average rating: 4.3 (32 votes) Log in to vote

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
List (
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 );
RandomBinomial ( .5 ; 10 )
)
  Sample output:
4
8
1
6
7
3
7
4
7
3

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

When called repeatedly, RandomBinomial returns values consistent with a binomial random variable with probability of "event success" and number of trials specified by the parameters.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.