Search found 1390 matches

by deltarho[1859]
Sep 21, 2018 22:31
Forum: General
Topic: The possible fallacy of faster PRNGs
Replies: 2
Views: 38

Re: The possible fallacy of faster PRNGs

@MrSwiss I take your point and here is the above with FBC 64 Num Recipes 1309.51 PCG32II 1383.29 Knuth64 1384.69 Infinity 1385.15 OK, Knuth64 has a slight edge this time but I'm only doing a single run as opposed an average of 7, say. The point of my argument still holds. In the context of the task ...
by deltarho[1859]
Sep 21, 2018 21:43
Forum: General
Topic: The possible fallacy of faster PRNGs
Replies: 2
Views: 38

The possible fallacy of faster PRNGs

Consider these lines of code x = <random number> y = <random number> x = Sqr( x*x + y*y ) If we replace our random number generator with a faster one then the first two lines will execute faster and the time taken to execute the three lines will, obviously, be less than before. However, if we repeat...
by deltarho[1859]
Sep 18, 2018 17:45
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 263
Views: 3717

Re: FreeBASIC's PRNG #2

So hardly surprising it is slow. That is why I changed the BASIC engine to asm resulting in RndMT being faster than FB #3. I'll give 5 a miss. It has its uses. In PCG32II's MyRandomize the first statement is 'Randomize , 5' prior to calling Get64Bit. On Windows FB #5 uses CryptGenRandom which produ...
by deltarho[1859]
Sep 18, 2018 15:19
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 263
Views: 3717

Re: FreeBASIC's PRNG #2

I found that to pass many of the PractRand criteria a good old mix up is as important as a clever algo. I agree. Way back in 1991 George Marsaglia introduced add-with-carry and subtract-with-borrow before his multiply-with-carry. In those days he and his like used to write mathematical papers. Sinc...
by deltarho[1859]
Sep 17, 2018 22:19
Forum: General
Topic: This (Solved)
Replies: 11
Views: 195

Re: This (Solved)

For me, the first objective of an example is to illustrate how to use the syntax of the described keyword The manual does that but it is left wanting. It left me wanting to know what does 'the member is hidden ' mean? Your first post, fxm, is much better; it illustrates how to use the syntax and do...
by deltarho[1859]
Sep 17, 2018 21:52
Forum: General
Topic: This (Solved)
Replies: 11
Views: 195

Re: This

Thanks guys.

For me, good examples bring home a textural definition. There are too many examples in the Manual and Wiki that just do not pass muster. Maybe it just me. <smile>
by deltarho[1859]
Sep 17, 2018 21:02
Forum: General
Topic: This (Solved)
Replies: 11
Views: 195

This (Solved)

I have never understood the keyword This. I use it to be on the safe side but decided it was time to use it only when necessary. In the manual and Wiki we are given an example where This is not needed. What I would have preferred is an example where This is needed. The only times when you need to qu...
by deltarho[1859]
Sep 17, 2018 15:29
Forum: Projects
Topic: CInt96 - 96 bit integer data type
Replies: 21
Views: 413

Re: CInt96 - 96 bit integer dta type

Come to think of it I'd prefer CUint96.
by deltarho[1859]
Sep 17, 2018 14:54
Forum: Projects
Topic: CInt96 - 96 bit integer data type
Replies: 21
Views: 413

Re: CInt96 - 96 bit integer dta type

@srvaldez Magic! You passed the interview - when can you start? <smile> Tried this: DIM AS CInt96 big big = 1 For k As Long=1 to 95 Print k,shift_left96( big,k) Next Print "******************" big="79228162514264337593543950335" For k As Long=1 to 95 Print k,shift_right96( big,k)...
by deltarho[1859]
Sep 17, 2018 11:39
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 263
Views: 3717

Re: FreeBASIC's PRNG #2

@dodicat Did you write Function random2.valu() As Ulongint e = a-((b Shl 39) Or (b Shr 25)) a = b xor ((c Shl 11) Or (c Shr 53)) b = c + d c = d + e d = e + a Return d End Function Anyway, as I said before, I'll let you guys carry on, I am fed up with PractRand now. You may well have saved your baco...
by deltarho[1859]
Sep 17, 2018 10:54
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 263
Views: 3717

Re: FreeBASIC's PRNG #2

Eureka! Found -tf and -te in RNG_test.cpp. I used FileLocator Pro to do a text search of PractRand's full distribution folder. The default test set options are '-tf 1' and '-te 0' -tf FOLDING FOLDING may be 0, 1, or 2. 0 means that the base tests are run on only the raw test data. 1 means that the b...
by deltarho[1859]
Sep 17, 2018 10:01
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 263
Views: 3717

Re: FreeBASIC's PRNG #2

O'Neill does know about -tf and -te. She used them on a Linux machine.
by deltarho[1859]
Sep 17, 2018 9:29
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 263
Views: 3717

Re: FreeBASIC's PRNG #2

My i7-3770K 3.5GHz (3.9GHz with boost) is not mentioned. It is discontinued being launched Q2'12 so it is a bit long in the tooth now. The i9s came out last year with 10 to 18 cores. The i9-9900K is due out in October this year and maybe in my next machine. It has 8 cores/16 threads. It has a base f...
by deltarho[1859]
Sep 17, 2018 7:22
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 263
Views: 3717

Re: FreeBASIC's PRNG #2

I had another bash with MsWs and got past 8GB this time but it took 103 seconds to do 1GB. These switches are 'flaky' and there is no mention of them in PractRand's version.txt going back to V0.80, the initial release. Perhaps they are experimental and only a few know about them. Yep, give them a wi...
by deltarho[1859]
Sep 17, 2018 6:45
Forum: General
Topic: FreeBASIC's PRNG #2
Replies: 263
Views: 3717

Re: FreeBASIC's PRNG #2

I have just found mention of -tf and -te, but only a mention, in the Discussion section of PractRand at SourceForge described as extended tests. There may be issues with these switches as they are knocking the stuffing out of some generators very early on. It is tempting to say give them a wide bert...

Go to advanced search