Generates a random sample from a list.
- 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.
- 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.
[1,2,3,4,5] and amount 2, would return samples like
[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.)