There are more ways to generate random numbers, here are a couple of options:

- use the
**random**module, expressed as:

__import__('random').random()

this will generate a random float value between 0.000000000000 and 0.999999999999.

- use the
**randit**method of**random**:

__import__('random').randint(10, 100)

this will generate a random number between 10 and 100.

**Example**:

If you want to add a new field and subtract another's values from random numbers between 1 and 10 000, you could write as expression:

{fieldName} - __import__('random').randint(1, 10000)

## Comments

0 comments

Article is closed for comments.