# Random  Sampling

**URL:** <https://community.wolfram.com/t/random-sampling/1514>\
**Category:** Questions\
**Tags:** mathematica, statistics-and-probability\
**Created:** [February 16, 2014, 6:03pm UTC](https://community.wolfram.com/t/random-sampling/1514 "2014-02-16T18:03:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scinews](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@scinews](https://community.wolfram.com/u/scinews)\
**Post date:** [February 16, 2014, 6:03pm UTC](https://community.wolfram.com/t/random-sampling/1514/1 "2014-02-16T18:03:05Z")

</div>

PLEASE I HAVE A SIMPLE QUESTION

WELL I AM BRAND NEW TO MATHEMATICA. THEN I STILL EXPERIENCE SOME DIFICULTY TO DEAL WITH THIS LANGUAGE AND I CANT FIND SOME more SIMPLE NOTATIONS.

FOR THE MOMENT I NEED TO PICK A RANDOM SAMPLING OF “4” NUMBERS FROM A SET " t " OF PREVIOUSLY SELECTED NUMBERS , FOR “n” TIMES.

EXAMPLE t = { 1,4, 6,27, 34, 56,78,82, 100, 123,222, 232…} THEN OUPUT FOR 2 TIMES { 4,27 ,222,56}; { 1,34, 56,123} -- AND SO ON.

THANKS A LOTS IF SOMEONE AT MORE ADVANCED LEVEL COULD SOLVE A SUCH SIMPLE QUESTION,. THIS IS FOR A PROJECT OF ANALYTICAL CHEMISTRY.

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [February 16, 2014, 6:50pm UTC](https://community.wolfram.com/t/random-sampling/1514/2 "2014-02-16T18:50:37Z")

</div>

Dear Andre,

I am not sure whether I understand what you want but it is similar to what this does?

```auto
t = {1, 4, 6, 27, 34, 56, 78, 82, 100, 123, 222, 232}

Table[RandomChoice[t, 4], {k, 1, 5}]

```

Cheers,  
M.

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/szhorvat/32/3531_2.png) [@szhorvat](https://community.wolfram.com/u/szhorvat)\
**Post date:** [February 17, 2014, 4:48pm UTC](https://community.wolfram.com/t/random-sampling/1514/3 "2014-02-17T16:48:55Z")

</div>

Typing your question in all caps pretty much guarantees that most people who might otherwise consider answering won’t even read the title.
