#pragma once #include namespace Random { extern std::mt19937 GENERATOR; template T uniform(T from, T to) { std::uniform_int_distribution rand(from, to); return rand(GENERATOR); } template T uniform_real(T from, T to) { std::uniform_real_distribution rand(from, to); return rand(GENERATOR); } template T normal(T from, T to) { std::normal_distribution rand(from, to); return rand(GENERATOR); } }