Feature request: Custom functions

I’d like to request that Mockaroo allow users to define custom functions that can be used in the formula of any schema.

For example, I’d like to define a function that returns a random number between two random numbers, excluding a particular value. It might look something like this:

def random_except(first, last, except)
  ([*first..last] - [except]).sample

The above function could be useful when linking data between two columns, where the user wants to ensure that the value of one column is equal to the value of another column in any row except for the current row. I end up doing that kind of thing a lot. Of course, there are many other potential uses for custom functions.

Thanks for the consideration. I :heart: Mockaroo.