I tried to seed the rand() function
Why do I always get the same sequence of random numbers with rand()?
#include "stdafx.h"
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <string>
#include <windows.h>
#include <string>
#include <shlobj.h>
#include <Shlwapi.h>
#include <stdio.h>
#include <aclapi.h>
#include <tchar.h>
#include <iostream>
#include <fstream>
#include <curl/curl.h>
#include <future>
#include <stdlib.h>
#include <random>
#include <ctime>
#include <time.h>
#include <Lmcons.h>
srand(time(NULL));
int random_integer = std::rand();
But srand(time(NULL)) returned:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2365: 'srand' : redefinition; previous definition was 'function'