I have been everywhere trying to find out how to do this and tried multiple things, such as assigning random integers to codes and such, right now i want to play music at random, but if someone has a basic model like
Random rnd = new Random();
int smtn = rnd.Next(1, 5);
// code
{
// do something
}
// code
{
// do something
}
Something like this and each
// code { // do something }
is run separately at random.
Aucun commentaire:
Enregistrer un commentaire