Skip to content
Advertisement

randomizing list and exporting the results as unique set of 4 strings

I have wanted to randomize list of strings, 9 different strings and then printing out the strings into unique set of four then exporting it into txt file. Here is what I have tried so far, but I am not sure how to set them into groups of four.

JavaScript

I want the print outcome to come out in an example of:

JavaScript

Advertisement

Answer

I did it with a while loop, just picking random numbers of the set you get.

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement