Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. List<string> botones = new List<string>();
  2.  
  3. botones.Add("Filipenses 4:13");
  4. botones.Add("Juan 3:16");
  5. botones.Add("2da Timoteo 3:16-17");
  6. botones.Add("Salmos 23:6");
  7. botones.Add("Salmos 91:1");
  8. botones.Add("Romanos 5:1");
  9.  
  10.  
  11. {
  12.  
  13. Random r1 = new Random();
  14. indexBtn = r1.Next(botones.Count);
  15. txtBtn = botones[indexBtn];
  16. botones.RemoveAt(indexBtn);
  17.  
  18. Random r2 = new Random();
  19. indexBtn2 = r2.Next(botones.Count);
  20. txtBtn2 = botones[indexBtn2];
  21. botones.RemoveAt(indexBtn2);
  22.  
  23. Random r3 = new Random();
  24. indexBtn3 = r3.Next(botones.Count);
  25. txtBtn3 = botones[indexBtn3];
  26. botones.RemoveAt(indexBtn3);
  27.  
  28. Random r4 = new Random();
  29. indexBtn4 = r4.Next(botones.Count);
  30. txtBtn4 = botones[indexBtn4];
  31. botones.RemoveAt(indexBtn4);
  32. botones.RemoveAt(indexBtn4);
  33.  
  34. Random r5 = new Random();
  35. indexBtn5 = r5.Next(botones.Count);
  36. txtBtn5 = botones[indexBtn5];
  37. botones.RemoveAt(indexBtn5);
  38.  
  39.  
  40. Random r6 = new Random();
  41. indexBtn6 = r6.Next(botones.Count);
  42. txtBtn6 = botones[indexBtn6];
  43. botones.RemoveAt(indexBtn6);
  44.  
  45.  
  46.  
  47. Btn.Text = txtBtn;
  48. Btn2.Text = txtBtn2;
  49. Btn3.Text = txtBtn3;
  50. Btn4.Text = txtBtn4;
  51. Btn5.Text = txtBtn5;
  52. Btn6.Text = txtBtn6;
  53.  
  54.  
  55. }
  56.  
  57. Random r1 = new Random();
  58. indexBtn = r1.Next(0, botones.Count-1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement