Brian Dunning's FileMaker Custom Functions

RandomLogNormal ( location ; scale )

Returns random values from a Log-Normal distribution

  Average rating: 4.5 (31 votes) Log in to vote

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
List (
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 );
RandomLogNormal ( 1 ; 1 )
)
  Sample output:
3.560444030529002614726
1.676854304229000419699
2.15979934072772826644
9.95739412580743137696
2.18866193130488630121
3.85046532591213431419
3.333895424562755630169
1.733309970144620521751
3.68126837067318961921
1.88571385204021183882

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

When called repeatedly, RandomLogNormal creates values consistent with a Log-Normal random variable.

This function is dependent on the RandomStandardNormal function.

 

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.