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
8extern "C" void PHASORstd_rand_seed(uint64_t s0, uint64_t s1);
9extern "C" uint64_t PHASORstd_rand_next();
10extern "C" double PHASORstd_rand_next_double();
11extern "C" int64_t PHASORstd_rand_next_range(int64_t min, int64_t max);
void PHASORstd_rand_seed(uint64_t s0, uint64_t s1)
Definition random.cpp:8
double PHASORstd_rand_next_double()
Definition random.cpp:26
int64_t PHASORstd_rand_next_range(int64_t min, int64_t max)
Definition random.cpp:31
uint64_t PHASORstd_rand_next()
Definition random.cpp:14