beinteractive / UrFairy

C# extensions for Unity development
73 stars 8 forks source link

List shuffle Random.Range problem #2

Open grtoth opened 5 years ago

grtoth commented 5 years ago

Shuffle is using Random.Range(0, 1) and 1 in this case is exclusive so its always returning 0, it should be Random.Range(0, 2) so the results would be between 0 and 1.