public ColorlistPermutations(Color[] all) { all_colors = all; for (var i = 0; i < all_color_lists.Length; ++i) { all_color_lists[i] = ArrayShuffler <Color> .Shuffle((Color[])all_colors.Clone()); } }
public static Color[] GetList(Color[] all_colors) { Color[] a = new Color[4]; for (var i = 0; i < a.Length; ++i) { a[i] = ArrayShuffler <Color> .Shuffle(all_colors)[0]; } return(a); }