Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstdlib>
- #include <time.h>
- void Randomizer();
- void TurnOne();
- constexpr int Adult = 2; // 2 years
- int WhiteMale = 0; // How many there are
- int BrownMale = 0;
- int BlackMale = 0;
- int SpottedMale = 0;
- int WhiteFemale = 0;
- int BrownFemale = 0;
- int BlackFemale = 0;
- int SpottedFemale = 0;
- int radioactive_mutant_vampire = 0; // How many there are
- int main() {
- srand(time(0));
- Randomizer();
- system("PAUSE");
- }
- void Randomizer() {
- std::string Randomizer[] = { "WhiteMale","BrownMale","BlackMale","SpottedMale","WhiteFemale","BrownFemale","BlackFemale","SpottedFemale","radioactive_mutant_vampire" };
- for (int i = 0; i < 5; i++) {
- int Random = rand() % 9;
- if (Randomizer[Random] == Randomizer[0]) {
- WhiteMale += 1;
- }
- else if (Randomizer[Random] == Randomizer[0]) {
- BrownMale += 1;
- }
- else if (Randomizer[Random] == Randomizer[0]) {
- BlackMale += 1;
- }
- else if (Randomizer[Random] == Randomizer[0]) {
- SpottedMale += 1;
- }
- else if (Randomizer[Random] == Randomizer[0]) {
- WhiteFemale += 1;
- }
- else if (Randomizer[Random] == Randomizer[0]) {
- BrownFemale += 1;
- }
- else if (Randomizer[Random] == Randomizer[0]) {
- BlackFemale += 1;
- }
- else if (Randomizer[Random] == Randomizer[0]) {
- SpottedFemale += 1;
- }
- else if (Randomizer[Random] == Randomizer[0]) {
- radioactive_mutant_vampire += 1;
- }
- }
- return;
- }
- void TurnOne() {
- if()
- }
Advertisement
Add Comment
Please, Sign In to add comment