/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * Copyright (c) 2021 Silverlan
 */

#ifndef __UTIL_RANDOM_HPP__
#define __UTIL_RANDOM_HPP__

#include "pragma/networkdefinitions.h"
#include <random>

namespace util {
	DLLNETWORK void to_random_float(const std::string &s, float &outF0, float &outF1);
	DLLNETWORK std::uniform_real_distribution<float> to_random_float(const std::string &s);
	DLLNETWORK void to_random_int(const std::string &s, int32_t &outI0, int32_t &outI1);
	DLLNETWORK std::uniform_int_distribution<int32_t> to_random_int(const std::string &s);
};

#endif
