0
string [] sarray={ "Hello", "From", "Tutorials", "Point" };

I want to generate a random list of strings from this array where each element generate five times

Can anyone help me? In any language... Thanks in advance....

  • 4
    Repeat the list 5 times then shuffle it. – Patrick Roberts Oct 16 '19 at 06:26
  • Possible duplicate of [Best way to randomize an array with .NET](https://stackoverflow.com/questions/108819/best-way-to-randomize-an-array-with-net). It should be simple enough for you to implement the Fisher-Yates algorithm in whatever languageyou want. – Peter Duniho Oct 16 '19 at 06:27
  • NIce way of advertising but yeah I like tutorial point. :0 – Kevin Ng Oct 16 '19 at 06:50

0 Answers0