Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Tactics/eNames.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (17 sloc)
1.01 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <random> | |
#include <vector> | |
#include <time.h> | |
using namespace std; | |
/* copy of the name generator for the character (thx oli) */ | |
string name_creation() | |
{ | |
/** array of length 42 created with 42 different names in there **/ | |
string names[42] = {"Angel Slayer","Whitewash","Cyclone","Oblique","Red Saint","Vex","Discord","Inferno","Safari","Recluse","Moors Stalker","Ditch","Nashville Psycho","Optic Nerve","Blink","Shivers","Blackout","Patch Galactic","Buttons","Killer Criminal","Static","Rundown","Limerick","Drift","Dust","Snake","Mockingbird","Aberration","Frenzy","Whistler","Voodoo","Mutilator","Tempus","West End Bandit","Rampage","Venom","Genesis","Bedlam","Omega","Crimson","Felon","Glitch"}; | |
/** sets the random seed to be based on the current time **/ | |
srand (time(NULL)); | |
/** rndm is equal to a random number between this need chagnes probs i assume its shoulkd be 41 but idk **/ | |
int rndm = rand() % 41; | |
/** returns a random name from the array **/ | |
return names[rndm]; | |
} |