summaryrefslogtreecommitdiff
path: root/numlib/rand.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-07-15 18:00:09 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-07-15 18:00:09 +0200
commit82d1d89d2e68db56890c593a6428cdcbed1105f2 (patch)
tree7341711df7d1dc24bfec7b408e5b1fc3eeba7a10 /numlib/rand.h
parentd27d024c441a3912ac2959dff6183abf0e199d78 (diff)
parent711b90e2fe8e1b842c3181a6909af1e432fe0fdc (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'numlib/rand.h')
-rwxr-xr-xnumlib/rand.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/numlib/rand.h b/numlib/rand.h
index e190fcd..0339b24 100755
--- a/numlib/rand.h
+++ b/numlib/rand.h
@@ -24,9 +24,12 @@ unsigned int seed); /* Optional seed. Non-zero re-initialized with that seed *
/* Return a random integer in the range min to max inclusive */
int i_rand(int min, int max);
-/* Return a random double in the range min to max inclusive */
+/* Return a uniform random double in the range min to max inclusive */
double d_rand(double min, double max);
+/* Return a squared distribution random double in the range min to max inclusive */
+double d2_rand(double min, double max);
+
/* Return a random floating point number with a gausian/normal */
/* distribution, centered about 0.0, with standard deviation 1.0 */
/* and an average deviation of 0.564 */
@@ -61,9 +64,12 @@ unsigned int seed); /* Optional seed. Non-zero re-initialized with that seed *
/* Return a random integer in the range min to max inclusive */
int i_rand_th(rand_state *p, int min, int max);
-/* Return a random double in the range min to max inclusive */
+/* Return a uniform random double in the range min to max inclusive */
double d_rand_th(rand_state *p, double min, double max);
+/* Return a squared distribution random double in the range min to max inclusive */
+double d2_rand_th(rand_state *p, double min, double max);
+
/* Return a random floating point number with a gausian/normal */
/* distribution, centered about 0.0, with standard deviation 1.0 */
/* and an average deviation of 0.564 */