Search found 2638 matches

by deltarho[1859]
Nov 29, 2020 13:14
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 993

Re: My take on Squares PRNG

I reviewed it myself. Using numbers in code is a habit from the early BASIC days. This may be better. '#Console On #include "drSquares4.bas" #define OneMB 1024*1024 #define LoopCounter OneMB\4 ' \4 for 32-bit output, \8 for 64-bit output Dim Shared S As String * OneMB Dim As Ulong Ptr SPtr...
by deltarho[1859]
Nov 29, 2020 12:42
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

srvaldez wrote:I take off on Saturdays from any computer activity

I would hazard a guess and say other activities as well. No problem. Image
by deltarho[1859]
Nov 28, 2020 1:01
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

Actually, my figures are grossly unfair. I was using dodicat's MT figures compared with PCG32II on my machine.

Getting the MT figures from my machine then the ratio is over 8 times faster.

I thought 21 times was a bit swift. Sorry about that.

However, the conclusion is the same.
by deltarho[1859]
Nov 27, 2020 23:16
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

yes, 3 times faster is not bad Win 10 64-bit -O3, gcc 5.2 '#Console on #Include "PCG32II.bas" Dim As Double t, sum Dim As long L t = Timer For n As Integer = 1 to 10000000 L = pcg.range(-10,10) sum+=L Next t = Timer - t Print t Sleep I get 0.010322 which is greater than 21 times faster. p...
by deltarho[1859]
Nov 27, 2020 21:08
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

@srvaldez

I reckon this AVX2 emulation lark is right up your street but it ain't mine. Image
by deltarho[1859]
Nov 27, 2020 19:11
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

I am sure the Shishua PRNG could be implemented without the use of AVX2 but with slower performance My guess is that it will drop like a stone. It is a bit like a multi-threaded application specifically designed for a multi-core machine. Yes, it will work on a single core machine but will be very m...
by deltarho[1859]
Nov 27, 2020 18:53
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

does the CPU in your PC support AVX2 ? No. Here we have a guy with a vectorized version of PCG32 which outputs twice as fast as the standard C version. Unfortunately he has AVX-512 so that leaves me out. http://deltarho.org.uk/Downloads/frown.png Therein lies a problem. Writing vectorized generator...
by deltarho[1859]
Nov 27, 2020 18:22
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

The _mm256 instructions are from the AVX (Advanced Vector Extensions) architecture. They are effectively the 'rich man's' Streaming SIMD Extesions where we move from 128-bit to 256-bit and, seven years ago, 512-bit. I, too, am not familiar with AVX. We are not talking mind-boggling floating-point gr...
by deltarho[1859]
Nov 27, 2020 16:09
Forum: General
Topic: Mersenne Twister, Public domain
Replies: 22
Views: 418

Re: Mersenne Twister, Public domain

On the forum is code for the following that I have written. PCG32II MsWs CryptoRndII CMWC4096 xoroshiro128** xoshiro256** drSquares4 They are all PractRand resistant and some are very fast. Did you not find one to your liking assuming that you have checked some of them out? With regard Shishua I am ...
by deltarho[1859]
Nov 27, 2020 11:38
Forum: Documentation
Topic: Threadsafe RANDOMIZE and RND
Replies: 57
Views: 1904

Re: Threadsafe RANDOMIZE and RND

OK, the four round version got to 2TB with PractRand with only one small anomaly.

The four round version is here.
by deltarho[1859]
Nov 26, 2020 23:53
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 993

Re: My take on Squares PRNG

Somehow the 1048576 became 1048578 and I don't know how - I had been using the code for some years. '#Console On #include "drSquares4.bas" Dim Shared S As String * 1048576 Dim As Ulong Ptr SPtr, BasePtr Dim As Long i SPtr = Cptr(Ulong Ptr, StrPtr( S )) BasePtr = SPtr Do For i = 1 to 262144...
by deltarho[1859]
Nov 26, 2020 19:46
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 993

Re: My take on Squares PRNG

What was happening with my glitch was instead of sending 1MB of data to PractRand 1MB + 16 empty bits was sent. The error was to do with the lower 16 bits of numbers. Between 500MB and 1GB PractRand reckoned that enough was enough. I have an issue with Widynski saying that the round three version ha...
by deltarho[1859]
Nov 26, 2020 19:04
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 993

Re: My take on Squares PRNG

I have just hit 2TB with only one small anomaly. I haven't seen that very often. So, the drSquares4.bas above is safe and with the 20-second test results we now have, after my glitch, a winner. With classical PRNGs the new random number generated is a function of either the previous random number, a...
by deltarho[1859]
Nov 26, 2020 17:02
Forum: General
Topic: My take on Squares PRNG
Replies: 39
Views: 993

Re: My take on Squares PRNG

Image
ITB and the first anomaly - the smallest so no worries on that.

Just less than two hours to go for the 2TB test.
by deltarho[1859]
Nov 26, 2020 15:16
Forum: Documentation
Topic: Threadsafe RANDOMIZE and RND
Replies: 57
Views: 1904

Re: Threadsafe RANDOMIZE and RND

Yours truly wrote:However, I am getting a 1GB failure with PractRand.

A bug has crept into the program I use to pipe data to PractRand. I have just gone past 64GB with the four round version and will let it run to, hopefully, 2TB.

I'll be back.

Go to advanced search