Hi all,

I have just finished my exercise and I would like to get some feedback if is possible. I have done it trying to copy the design from the original.

I am not sure if the algorithm I am using to generate a random phrase is the right one. I have just seen some on the Internet that I really like , but I haven’t used any of them because I wanted to try to do it on my own.

My Algorithm generates en index and if it is repeated, generates it again until it gets a no-repeat one. For that I store all the indices in an array. But I am afraid if the list of phrases is very big, then my algorithm can be slow.

My code is here: http://codepen.io/ciberlook/full/bZWppN/

Thank you in advance!!