CNum 0.2.1
CPU-optimized ML library for C++
Loading...
Searching...
No Matches
RandUtils.h File Reference
#include <cstdint>
#include <random>
#include <map>
#include <memory>
#include <shared_mutex>
#include <unordered_set>
#include <stdexcept>
#include "XoshiroCpp.hpp"
#include "CNum/Multithreading/ThreadPool.h"
#include "CNum/Utils/RandUtils.tpp"

Go to the source code of this file.

Classes

class  CNum::Utils::Rand::RandomGenerator
 A global service for random number generation. More...

Namespaces

namespace  CNum::Utils::Rand
 Utilities for generating random numbers.
namespace  CNum
 The umbrella namespace from which you can access all modules of CNum.
namespace  CNum::Utils
 Utilities.

Functions

template<typename T>
void CNum::Utils::Rand::generate_n_unique_rand_in_range (size_t low_bound, size_t high_bound, T *out, size_t n, uint64_t logical_id=0)
 Generate n unique random integers.