Brian Dunning's FileMaker Custom Functions

RandomExponential ( rate )

Returns random values from an Exponential distribution

  Average rating: 4.8 (27 votes) Log in to vote

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
List (
RandomExponential ( 1 );
RandomExponential ( 1 );
RandomExponential ( 1 );
RandomExponential ( 1 );
RandomExponential ( 1 );
RandomExponential ( 1 );
RandomExponential ( 1 );
RandomExponential ( 1 );
RandomExponential ( 1 );
RandomExponential ( 1 )
)
  Sample output:
3.919161890918570149312
.15005606710178912219
.09859441091091724431
.99103570742196350662
1.61862199572644295472
2.10083749402320095745
1.29462255771781284049
1.48280409241670285811
.90525076631253719828
.80608311456913192546

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

When called repeatedly, RandomExponential returns values from an Exponential distribution with the given rate parameter.

 

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.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: