Brian Dunning's FileMaker Custom Functions

TryFor0 ( range )

Try to get 0 from random

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

Christoph Ivo Mattle   Christoph Ivo Mattle
Christophs
http://www.christophmattle.ch

Share on Facebook Share on Twitter

  Sample input:
TryFor0 ( 10 )
  Sample output:
21

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

We call the random function until it generates 0.
The result shows the number of tries; it will always be different.

Just fun :-)

 

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 15 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: