title: Generate 4 differents numbers randomly
body: <p>I am a novice in Xamarin , </p>
  
  <p>I want to generate randomly 4 numbers which are in a list and this 4 numbers must be different .</p>
  
  <p>In the example below I have a list of Ids and I am trying to pick 4 id randomly in the list and those 4 Ids must be each differents.</p>
  
  <p>Here is my methode, I cannot see how I can continue and make it simple :</p>
  
  <pre><code>   public MyWordsList()
              {
                  InitializeComponent();
  
  
                Dictionary&lt;int, int&gt; WordId = new Dictionary&lt;int, int&gt;();
                  int u= 0;
                  // TestAnswer.IsVisible = false;
                  foreach (var w in mywords)
                  {
                      WordId[u] = w.ID;
                      u++;
                  }
  
                  Random rnd = new Random();
  // this is not ok because I can have the same number
                  word11.Text = WordsList[rnd.Next(1, 20)];
                  word12.Text = WordsList[rnd.Next(1, 20)];
                  word13.Text = WordsList[rnd.Next(1, 20)];
                  word14.Text = WordsList[rnd.Next(1, 20)];
  
      }
  </code></pre>
  
  <p>If you have a better solution, I will take. 
  Thanks</p>