Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _02._Randomize_Words
- {
- class Program
- {
- static void Main(string[] args)
- {
- string[] words = Console.ReadLine().Split(' ');
- Random rnd = new Random();
- for (int pos1 = 0; pos1 < words.Length; pos1++)
- {
- int pos2 = rnd.Next(words.Length);
- pos1 = pos2;
- }
- Console.WriteLine(string.Join(Environment.NewLine, words));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement