# Path: pyalgs/algorithms/commons/shuffling.py
# class KnuthShuffle(object):
#     @staticmethod
#     def shuffle(a):
#         for i in range(1, len(a)):
#             r = randint(0, i)
#             exchange(a, r, i)


import unittest
from pyalgs.algorithms.commons.shuffling import KnuthShuffle



class KnuthShuffleUnitTest(unittest.TestCase):
    def test_shuffle(self):
        a = [1, 2, 13, 22, 123]
        KnuthShuffle.shuffle(a)
        print(a)

if __name__ == '__main__':

# Path: pyalgs/algorithms/commons/shuffling.py
# class KnuthShuffle(object):
#     @staticmethod
#     def shuffle(a):
#         for i in range(1, len(a)):
#             r = randint(0, i)
#             exchange(a, r, i)


# Path: tests/algorithms/commons/shuffling_unit_test.py
import unittest
from pyalgs.algorithms.commons.shuffling import KnuthShuffle




class KnuthShuffleUnitTest(unittest.TestCase):
    def test_shuffle(self):
        a = [1, 2, 13, 22, 123]
        KnuthShuffle.shuffle(a)
        print(a)

if __name__ == '__main__':

    unittest.main()