Created
March 12, 2015 12:50
-
-
Save hi2p-perim/54310e0a2558e802e247 to your computer and use it in GitHub Desktop.
Utilizing 種田梨沙さん as random seed for std::mt19937. Checked with VS2013.
This file contains hidden or 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 <functional> | |
#pragma execution_character_set("utf-8") | |
int main() | |
{ | |
std::mt19937 eng(std::hash<std::string>()("種田梨沙")); | |
std::uniform_int_distribution<int> dist; | |
std::cout << dist(eng) << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment