Phasor
3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
random.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// my tiny xorshift+ implementation
4
// (C) Daniel McGuire -- MIT License
5
6
#include <cstdint>
7
8
extern
"C"
void
PHASORstd_rand_seed
(uint64_t s0, uint64_t s1);
9
extern
"C"
uint64_t
PHASORstd_rand_next
();
10
extern
"C"
double
PHASORstd_rand_next_double
();
11
extern
"C"
int64_t
PHASORstd_rand_next_range
(int64_t min, int64_t max);
PHASORstd_rand_seed
void PHASORstd_rand_seed(uint64_t s0, uint64_t s1)
Definition
random.cpp:8
PHASORstd_rand_next_double
double PHASORstd_rand_next_double()
Definition
random.cpp:26
PHASORstd_rand_next_range
int64_t PHASORstd_rand_next_range(int64_t min, int64_t max)
Definition
random.cpp:31
PHASORstd_rand_next
uint64_t PHASORstd_rand_next()
Definition
random.cpp:14
src
Runtime
Stdlib
core
random.hpp
Generated by
1.16.1