Guest User

Untitled

a guest
Feb 24th, 2019
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <cstdlib>
  4. #include <time.h>
  5.  
  6. void Randomizer();
  7. void TurnOne();
  8.  
  9. constexpr int Adult = 2; // 2 years
  10.  
  11. int WhiteMale = 0; // How many there are
  12. int BrownMale = 0;
  13. int BlackMale = 0;
  14. int SpottedMale = 0;
  15.  
  16. int WhiteFemale = 0;
  17. int BrownFemale = 0;
  18. int BlackFemale = 0;
  19. int SpottedFemale = 0;
  20.  
  21. int radioactive_mutant_vampire = 0; // How many there are
  22.  
  23. int main() {
  24. srand(time(0));
  25.  
  26. Randomizer();
  27.  
  28. system("PAUSE");
  29. }
  30.  
  31. void Randomizer() {
  32.  
  33. std::string Randomizer[] = { "WhiteMale","BrownMale","BlackMale","SpottedMale","WhiteFemale","BrownFemale","BlackFemale","SpottedFemale","radioactive_mutant_vampire" };
  34.  
  35. for (int i = 0; i < 5; i++) {
  36. int Random = rand() % 9;
  37.  
  38. if (Randomizer[Random] == Randomizer[0]) {
  39. WhiteMale += 1;
  40. }
  41. else if (Randomizer[Random] == Randomizer[0]) {
  42. BrownMale += 1;
  43. }
  44. else if (Randomizer[Random] == Randomizer[0]) {
  45. BlackMale += 1;
  46. }
  47. else if (Randomizer[Random] == Randomizer[0]) {
  48. SpottedMale += 1;
  49. }
  50. else if (Randomizer[Random] == Randomizer[0]) {
  51. WhiteFemale += 1;
  52. }
  53. else if (Randomizer[Random] == Randomizer[0]) {
  54. BrownFemale += 1;
  55. }
  56. else if (Randomizer[Random] == Randomizer[0]) {
  57. BlackFemale += 1;
  58. }
  59. else if (Randomizer[Random] == Randomizer[0]) {
  60. SpottedFemale += 1;
  61. }
  62. else if (Randomizer[Random] == Randomizer[0]) {
  63. radioactive_mutant_vampire += 1;
  64. }
  65. }
  66. return;
  67. }
  68.  
  69. void TurnOne() {
  70. if()
  71. }
Advertisement
Add Comment
Please, Sign In to add comment