fibonacci_rng 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +5 -1
- data/docs/Chi Squared.ods +0 -0
- data/docs/Fib_Scatter.png +0 -0
- data/docs/fib corr.png +0 -0
- data/docs/int corr.png +0 -0
- data/docs/scatter.ods +0 -0
- data/docs/scatter_fib.txt +8193 -0
- data/docs/scatter_int.txt +8193 -0
- data/lib/fibonacci_rng/version.rb +1 -1
- data/lib/fibonacci_rng.rb +47 -6
- data/prng.rb +5 -2
- data/tests/fibinacci_rng_tests.rb +29 -4
- data/tools/scatter_plot.rb +26 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWQ3ZWNmMjg4YTFkYjdjZjA1MTQ1MzVjZGIxNmIyYWY3NzNiY2JkNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDMyMjE4Mzg0NzMwMDgzNDMwNmViZDUwMTNkNmExZTM5YjcyOWNiZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWRlZDIwYTRlZTMxMDgzMjg0Nzk4ZDUzMTFlYTgyN2IyMzlmYzNmNmVkMWUx
|
10
|
+
MTI5YWQ4NjlhNDY2ODIwZWVjZmZkNTU4OTdmYmY5NTJmODk0NTliNDMyM2Uw
|
11
|
+
YTI5MTMwNTNjNTczYjIzNGE4ZGY0NTYyNzk4OGQwNjU0NmE2NjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTQwMTA2NzQzNTc1YjhkNTQ3Njg2ZGFhODVhMTU2YzA1Nzk4NjhkYzZkZGJi
|
14
|
+
NjU2NzJiNDBlYzU5MTlkYWI5Y2Q5NjgwNDgxMTM1ODIyZTc3ZjNjYzY2ODky
|
15
|
+
MjdkODcwNzU4NTQxOGYwZWQ3MjljYmNkNTQ1ZjJkNjdlNzVkNzQ=
|
data/README.md
CHANGED
@@ -31,7 +31,11 @@ Then in an appropriate place in the code:
|
|
31
31
|
|
32
32
|
Where depth is an optional integer value between 3 and are you kidding and
|
33
33
|
the seed value is a number or string or other object that has a repeatable
|
34
|
-
value.
|
34
|
+
value. You can also get a "random" generator of the default depth by using:
|
35
|
+
|
36
|
+
@my_rng = FibonacciRng.new
|
37
|
+
|
38
|
+
To get some data out here are some options:
|
35
39
|
|
36
40
|
@my_rng.dice(100) # A "random" integer between 0 and 99
|
37
41
|
@my_rng.byte # A "random" integer between 0 and 255
|
Binary file
|
Binary file
|
data/docs/fib corr.png
ADDED
Binary file
|
data/docs/int corr.png
ADDED
Binary file
|
data/docs/scatter.ods
ADDED
Binary file
|