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 <
phsint.hpp
>
7
8
extern
"C"
void
PHASORstd_rand_seed
(
Phasor::u64
s0,
Phasor::u64
s1);
9
extern
"C"
Phasor::u64
PHASORstd_rand_next
();
10
extern
"C"
Phasor::f64
PHASORstd_rand_next_double
();
11
extern
"C"
Phasor::i64
PHASORstd_rand_next_range
(
Phasor::i64
min,
Phasor::i64
max);
Phasor::i64
int64_t i64
Definition
phsint.hpp:16
Phasor::f64
double f64
Definition
phsint.hpp:7
Phasor::u64
uint64_t u64
Definition
phsint.hpp:12
phsint.hpp
PHASORstd_rand_next
Phasor::u64 PHASORstd_rand_next()
Definition
random.cpp:15
PHASORstd_rand_next_double
Phasor::f64 PHASORstd_rand_next_double()
Definition
random.cpp:27
PHASORstd_rand_seed
void PHASORstd_rand_seed(Phasor::u64 s0, Phasor::u64 s1)
Definition
random.cpp:9
PHASORstd_rand_next_range
Phasor::i64 PHASORstd_rand_next_range(Phasor::i64 min, Phasor::i64 max)
Definition
random.cpp:32
src
Runtime
Stdlib
core
random.hpp
Generated by
1.16.1