Lists
Mockaroo gives you two options for generating data based on a list:
Random
The "random" options simply selects an item at random from the list when generating each row. Multiple lists that
use this option operate independently. For example, imagine you have the following fields:
Each row will contain a random item from each lists. The data will be unordered and different each time. For example, you'd get something like:
Transaction Type | Product |
---|
Online | Mouse |
In Store | Keyboard |
In Store | USB Drive |
Online | USB Drive |
In Store | Mouse |
Online | USB Drive |
Sequential
The "sequential" option steps through the list in order from start to finish and then back to the start
again.
This will produce a result where both lists are iterated in order:
Transaction Type | Product |
---|
In Store | Keyboard |
Online | Mouse |
In Store | USB Drive |
Online | Keyboard |
In Store | Mouse |
Online | USB Drive |
Cartesian
Cartesian is similar to sequential, except that any subsequent lists that also have cartesian selectedwill be traversed in a nested fashion. For example, consider the following fields:
This will generate data in the specific order in which items appear in each list. The result is the product of all
possible combinations of the two lists. Values are grouped in the order in which the lists appear in the schema:
Transaction Type | Product |
---|
In Store | Keyboard |
In Store | Mouse |
In Store | USB Drive |
Online | Keyboard |
Online | Mouse |
Online | USB Drive |