aboutsummaryrefslogtreecommitdiff
path: root/src/framework/random.hpp
blob: 5889a69ff999c4cf446839b64b2fcc93496f3b49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include <random>

namespace Framework::Random {
	inline std::random_device SEEDER;
	inline std::mt19937 ENGINE{ SEEDER() };

	inline size_t Int(size_t Min, size_t Max){
		std::uniform_int_distribution Get{ Min, Max };
		return Get(ENGINE);
	}
}

(git 2.53.0) at 2026-05-13 17:17:34 +0000