Tag Archives: select random

Select random objects from an array in C#

This example builds a generic extension method that lets you easily select random objects from an array. The following code shows the extension method and the RandomTools class that defines it. public static class RandomTools { // The Random object … Continue reading

Posted in algorithms, arrays, mathematics, variables | Tagged , , , , , , , , , , , , | Leave a comment