From 7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 1 May 2021 15:10:54 -0400 Subject: Added bash completion, amongst others --- src/dice.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/dice.h') diff --git a/src/dice.h b/src/dice.h index f9975bc..08910a7 100644 --- a/src/dice.h +++ b/src/dice.h @@ -1,9 +1,5 @@ #pragma once -#include -std::mt19937 gen(std::random_device{}()); - -int roll(int d) { - std::uniform_int_distribution<> dist(1, d); - return dist(gen); +namespace dice { + int roll(int d); } -- cgit v1.2.3