Lattice Tester Online Documentation 0.1.0-861
Software Package For Testing The Uniformity Of Integral Lattices In The Real Space
Loading...
Searching...
No Matches
Random.h File Reference
#include <cstdint>
#include <climits>
#include <NTL/ZZ.h>

Namespaces

namespace  LatticeTester
 Lattice namespace.
 
namespace  LatticeTester::Random
 This class generates random numbers (in fact pseudo-random numbers).
 

Macros

#define GERME   (ULONG_MAX / 54321)
 

Functions

double LatticeTester::Random::randU01 ()
 Returns a random number in \([0, 1)\).
 
std::int64_t LatticeTester::Random::randInt (std::int64_t i, std::int64_t j)
 Return a random integer in \([i, j]\).
 
NTL::ZZ LatticeTester::Random::randInt (NTL::ZZ i, NTL::ZZ j)
 This is an overload of the previous method to create an NTL::ZZ integer in the range \([i,j]\).
 
std::uint64_t LatticeTester::Random::randBits (int64_t s)
 Returns random blocks of \(s\) bits ( \(s\)-bit integers).
 
void LatticeTester::Random::setSeed (std::uint64_t seed=GERME)
 Sets the seed of the generator.
 

Macro Definition Documentation

◆ GERME

#define GERME   (ULONG_MAX / 54321)