How to shuffle the words for word search game?

The word search game like (http://www.vocabulary.co.il/word-play/word-search-game/) in the link…How can we shuffle the words in the box??