Android - Selecting five random numbers with some probability : <p>I want to select 5 random numbers with some probability.</p>

<p>my numbers: 2-5-6-9-14</p>

<pre><code>probability:
2  -&gt; %30
5  -&gt; %20
6  -&gt; %35
9  -&gt; %10
14 -&gt; %5
</code></pre>

<p>I want to go new activity if the three numbers are the same.</p>

<p>Not: maximum three numbers can be the same.</p>

<p>How Can I do that?</p>
