Brian Dunning's FileMaker Custom Functions

RandomUniform ( minimum ; maximum )

Returns random values from a uniform distribution

  Average rating: 4.4 (34 votes) Log in to vote

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
List (
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 );
RandomUniform ( -10 ; 10 )
)
  Sample output:
9.0386356785893440246
-.4952840320765972138
5.4820564016699790954
1.0624830890446901322
6.2695151381194591522
-5.4272786807268857956
-9.16864905506372451782
-6.7148288991302251816
.0019517727196216584
-8.4394451044499874115

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

Creates a random continuous value between "minimum" and "maximum". When called repeatedly, RandomUniform returns values that are uniformly distributed between minimum and maximum.

 

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: