Percentage using Random
<p>Today I created a function which generates a <code>random</code> number (0, 1, 2 or 3).<br>
But I want yo have a percetage function.</p>

<p>I would like to apply a percentage to every chance to which the generated numbers fall.<br>
Example: 0 will have 60% chance of being drawn, the number 1 19%, ...</p>

<pre><code> public void GenerGame(){

        Random r = new Random();
        int game = r.nextInt(max - min +1);

        if (game == 0){
            // do something
        }
        else if (game == 1){
            // do something
        }
        else if (game == 2){
            // do something
        }
        else {
            // do something
        }
 } 
</code></pre>

<p>Can I do it by using <code>Random</code>?</p>