vendredi 7 octobre 2016

Filling an empty object array with a full one randomly in C#

So lets say i have two object arrays...

    Test[] Filled = new Test[5]; //copied from
    Test[] Empty = new Test[5]; // pasted to

    //they contain 3 different variables aswell

How would you do it if you would copy (not remove) 5 random objects into random positions. From Filled to Empty. There can be duplicates just as long as its randomly done.




Aucun commentaire:

Enregistrer un commentaire