Hey, I am not sure if that feature already exists. I checked the github and seems like it does not. Sorry if it does, feel free to close it or poke me
I think it should be next to the Random and would be something like this:
This is something I use in my projects. For instance shuffeling the kits, teleporting points, giving random gifts etc..Code:void Shuffle(T[] data) { for (var i = data.Length; i > 1; i--) { var r = random.Next(i--); var t = data[r]; this.data[r] = this.data[i]; this.data[i] = t; } }
Request List and array Shuffle
Discussion in 'Feature Suggestions' started by Friendly Ape, Feb 3, 2018.