Advertisement
gospod1978

Object and Class/Randomize Words

Oct 24th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using System.Text.RegularExpressions;
  6. using System.Globalization;
  7.  
  8. namespace fundamental14
  9. {
  10.     class MainClass
  11.     {
  12.         public static void Main()
  13.         {
  14.  
  15.             string[] words = Console.ReadLine().Split();
  16.             Random rnd = new Random();
  17.             for (int pos1 = 0; pos1 < words.Length; pos1++)
  18.             {
  19.                 int pos2 = rnd.Next(words.Length);
  20.             }
  21.  
  22.             Console.WriteLine(string.Join(Environment.NewLine, words));
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement