Generates a random sample from a list.

Input Fields

  • list (list): a list you want to take a sample from – be sure to set the type of the list
  • amount (number): the number of samples you wish to return.

Output Fields

  • samples: returns a random selection of the size specified from the list specified. Be sure to set the type of the output to match the type of the input list.

Example

Input list: [1,2,3,4,5] and amount 2, would return samples like [1,2] or [3,5] – a different random set of 2 each time it runs. (For the example, list and samples are both set in advance to be a list of numbers.)