helpful for randomizing the number of entries returned in lists. { Person: () => ({ // a list of length between 2 and 6 (inclusive) friends: () => new MockList([2, 6]), // a list of three lists of two items: [[1, 1], [2, 2], [3, 3]] listOfLists: () => new MockList(3, () => new MockList(2)), }), } You can also use this to describe object types, and the fields can be functions too: { Person: () => ({ name: casual.name, age: () => casual.integer(0, 120), }), }