JAVA Random Permutation Generator class

preview_player
Показать описание
Simple java exercise from the book - we need to create a class Permutation Generator which have a method nextPermutation to return simple array of integers from 1 to 10 in random order. To achieve this goal we will use helper arraylist from where we will take random element and put it onto the next array index. To avoid dublicate values on each iteration we will delete current value in the arraylist and re-calculate random value based on arraylist size. Ugh, sorry, my english is really bad xD
=====================================
SUBSCRIBE FOR MORE:
=====================================
Рекомендации по теме
join shbcf.ru