I have an array of 9 values. I want to populate another array of size 18 with those values randomly, with regards that they should occur only twice.
String[] cards = {"1","2","3","4","5","6","7","8","9"};
I have an array of 9 values. I want to populate another array of size 18 with those values randomly, with regards that they should occur only twice.
String[] cards = {"1","2","3","4","5","6","7","8","9"};
Copyright © 2021 Jogjafile Inc.
Here's the result of my LazyRandomizer class.
And here's the code.