Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

XorShift On C++

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1,79 sec, absolute running time: 0,22 sec, absolute service time: 2,02 sec 
edit mode |  history
>> defaults
x:123456789
y:362436069
z:521288629
w:88675123
>> seeds in r
x:892715008
y:1297890516
z:10139769
w:1484368302
>> rand 0 to UInt32Max
3701687786
458299110
2500872618
3633119408
516391518
>> randInt 0 to 100
68
3
88
94
81
>> randFloat 0 to 1
0.10634
0.847974
0.0310063
0.904433
0.845106
>> shuffle array
2, 11, 0, 10, 4, 3, 16, 6, 14, 8, 1, 18, 12, 13, 19, 7, 9, 17, 15, 5, 
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 
>> shuffle vector<T>
6, 3, 16, 2, 7, 1, 18, 8, 9, 13, 4, 15, 19, 10, 14, 11, 12, 5, 0, 17, 
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 
>> randCount in r
43

    
                
λ
.NET NoSQL database for rapid development