Skip to content

jan-moeller/constexpr-random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crand

C++23 constexpr pseudo-random number generation.

Engines

  • splitmix64
  • xorshift32, xorshift64
  • xoshiro256**

Distributions

  • bernoulli
  • uniform (int / real)
  • normal

Why Is This C++23?

Because this needs constexpr math. And <cmath> only became (partially) constexpr in C++23. Everything else is C++20.

About

C++23 constexpr pseudo-random number generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published