Number Widget - The random function

Tags

1. Obtaining a random number

In some cases you may wish to obtain a random number (for example when creating a resource).

  • By selecting fx you can paste the following formula:

calc(random() * 1000000)

This will randomly suggest a 13-digit number. Delete the zeros if you want a shorter number.

  • For an attribute of type number, the parameters allow you to define a maximum and minimum when creating this attribute. The maximum and minimum must be between 0 and 9999.
  • You can define a unit for a number attribute (e.g. rpm).
image