A JavaScript method to shuffle array reproducible based on seed.