]> gitweb.factorcode.org Git - factor.git/blob - extra/random/xoshiro/xoshiro-tests.factor
factor: add newlines to .factor files
[factor.git] / extra / random / xoshiro / xoshiro-tests.factor
1 ! Copyright (C) 2018 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel math random.xoshiro tools.test ;
4 IN: random.xoshiro.tests
5
6 {
7   2 3 131074 70368744177664
8   5760
9 } [
10   0 1 2 3
11   (next-256)
12 ] unit-test
13
14 {
15   4046638647718970624
16   2015137892536077249
17   6184416992699500823
18   16308606917844226410
19 } [
20   0 1 2 3
21   10,000 [
22     (next-256) drop
23   ] times
24 ] unit-test
25
26 {
27   14662298501051415801
28   12883398035623381500
29   17052052954271276209
30   1546841944388125985
31 } [ 0 1 2 3 jump-256 ] unit-test
32
33 {
34   15716266295256758020
35   17232205271518152816
36   9857397594961175947
37   8327361040835137714
38 } [ 0 1 2 3 long-jump-256 ] unit-test
39