mirror of
https://github.com/dylanbenzi/terminaltrainers.git
synced 2026-11-27 07:47:01 +00:00
add srand to randomize outputs
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <ctime>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#define OLC_PGE_APPLICATION
|
#define OLC_PGE_APPLICATION
|
||||||
#include "olcPixelGameEngine.h"
|
#include "olcPixelGameEngine.h"
|
||||||
@@ -300,6 +301,7 @@ protected:
|
|||||||
};
|
};
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
srand(time(0));
|
||||||
TerminalTrainers demo;
|
TerminalTrainers demo;
|
||||||
if(demo.Construct(256, 240, 4, 4))
|
if(demo.Construct(256, 240, 4, 4))
|
||||||
demo.Start();
|
demo.Start();
|
||||||
|
|||||||
Reference in New Issue
Block a user