Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using Medallion;
  4.  
  5. namespace ListShuffler
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. var cards = new List<string>
  12. {
  13. "Plains",
  14. "Plains",
  15. "Plains",
  16. "Plains",
  17. "Plains",
  18. "Plains",
  19. "Plains",
  20. "Plains",
  21. "Mountain",
  22. "Mountain",
  23. "Mountain",
  24. "Mountain",
  25. "Mountain",
  26. "Mountain",
  27. "Mountain",
  28. "Swamp",
  29. "Unlicensed Disintegration",
  30. "Embraal Gear-smasher",
  31. "Aethergeode Miner",
  32. "Audacious Infiltrator",
  33. "Caught in the Brights",
  34. "Chandra's Revolution",
  35. "Shock",
  36. "Dawnfeather Eagle",
  37. "Aether Chaser",
  38. "Freejam Regen",
  39. "Wayward Giant",
  40. "Quicksmith Rebel",
  41. "Aether Chaser",
  42. "Sweatworks Brawler",
  43. "Sweatworks Brawler",
  44. "Chandra, Torch of Defiance",
  45. "Scrapper Champion",
  46. "Renegade Freighter",
  47. "Heart of Kiran",
  48. "Implement of Combustion",
  49. "Aviary Mechanic",
  50. "Fragmentize",
  51. "Fairgrounds Warden",
  52. "Depala, Pilot Exemplar"
  53. };
  54.  
  55. var counter = 1;
  56. foreach (var card in cards)
  57. {
  58. Console.Write(card);
  59. counter++;
  60. if (counter > 7)
  61. {
  62. break;
  63. }
  64. Console.Write(", ");
  65. }
  66. Console.WriteLine(string.Empty);
  67.  
  68. cards.Shuffle();
  69.  
  70. counter = 1;
  71. foreach (var card in cards)
  72. {
  73. Console.Write(card);
  74. counter++;
  75. if (counter > 7)
  76. {
  77. break;
  78. }
  79. Console.Write(", ");
  80. }
  81. Console.WriteLine(string.Empty);
  82. }
  83. }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement