Creates random sample