Demo entry 6633151

Random

   

Submitted by Randjith on Jul 31, 2017 at 20:27
Language: C#. Code size: 141 Bytes.

do
{
    r = instAleatoire.Next(0, listeInstruments.Count);
}
while (listeInstrumentsRandom.Contains(r));
listeInstrumentsRandom.Add(r);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).