import random


def sample_wr(data, n_samples=1):
    """
    Create a list of data by random sampling from a data set with replacement
    Inputs:
        data            List of data
        n_samples       number of samples to draw
    Return:
         sample         list of samples drawn
    """
    sample = []
    for ind in range(0, n_samples):
        sample.append(random.choice(data))
    return sample