algorithmic modeling for Rhino
Hi,
Is it possible to use function System.Random.Range(i, list.length) ?
When I type System.Random I cannot access Range.
I would like just to shuffle items in a list similar to this:
for (int i = 0; i /span> alpha.Count; i++) {
string temp = alpha[i];
int randomIndex = Random.Range(i, alpha.Count);
alpha[i] = alpha[randomIndex];
alpha[randomIndex] = temp;
}
Thanks,
Petras
Tags:
PS: This no attachment possible recent behavior is nerve braking
Thanks :)))
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by