Search found 1239 matches

by dafhi
Oct 05, 2019 7:31
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 391

Re: high period PRNG

@fxm - in case you're interested, my development framework #define def #define type state_size as ulongint def seq_return as ulong def seq_state as state_size type MiniBits ' n-bit literal declare constructor( seq_state = 0, as ubyte = 0) declare constructor( as MiniBits) declare operator let( seq_s...
by dafhi
Oct 05, 2019 6:42
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 391

Re: high period PRNG

maybe i found something that matches all my criteria. with a multiply = 5, i got 'unusual' @256GB a *= mul e += f xor a shr _shr a xor= e f += a i'm thinking any odd multiplier between 7 and 2^(bits\2 - 3) will work update: nope. hiccups. .. relying on perception otherwise is not exactly scientific....
by dafhi
Oct 05, 2019 3:25
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 391

Re: high period PRNG

Isn't animated about data coming in?

I'm still searching for an algorithm that's

pract-friendly
6 operations or less
high period
not fussy
by dafhi
Oct 04, 2019 0:48
Forum: General
Topic: String Sort problem
Replies: 24
Views: 560

Re: String Sort problem

Could treat all LF colon and comma as the same char?

If not, well ima go for a walk anyway
by dafhi
Oct 02, 2019 20:20
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 391

Re: high period PRNG

@fxm - animated histo - love that. I have a histo but its nowhere near as cool

@MrSwiss - I haven't yet thought of a project. UByte simply demonstrates the period :D
by dafhi
Oct 02, 2019 7:56
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 391

high period PRNG

type mylit as ubyte '' visually inspect period. change to higher as needed function CSG_HP(byref a as mylit) as mylit ' high period "random number generator" - 2019 Oct 1 - by dafhi ' period is roughly better than: 2^(bits*3 - 2) /' usage scenarios: low-power diagnostic equipment 8K+ path...
by dafhi
Sep 18, 2019 5:59
Forum: Tips and Tricks
Topic: Using Shadertoy.com shaders offline.
Replies: 13
Views: 3421

Re: Using Shadertoy.com shaders offline.

holy cow!
by dafhi
Sep 18, 2019 2:51
Forum: Tips and Tricks
Topic: Fastest PRNG around, the XORSHIFT
Replies: 34
Views: 1511

Re: Fastest PRNG around, the XORSHIFT

this does well in my monte carlo sim

Code: Select all

x *= x
x xor= w
w += 1
by dafhi
Sep 13, 2019 14:44
Forum: Tips and Tricks
Topic: my next RNG .. CSG IV
Replies: 1
Views: 664

Re: my next RNG .. CSG IV

new version
by dafhi
Sep 13, 2019 4:22
Forum: General
Topic: Russian Sorting Halves Danilin
Replies: 14
Views: 1078

Re: Russian Sorting Halves Danilin

' sort timer - 2017 Dec 4 - by dafhi '' shorthand, for later #define d #define '' sort this Type vector3d As double x,y,z as uinteger color End Type ' ------------------------------------- Type my_SORT_TYPE as vector3d ' ------------------------------------- '' comment out the .z for plain var type...
by dafhi
Aug 18, 2019 2:14
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 19195

Re: StringArray Sort (case independent)

jj2007 wrote:..QSort() is a stable mergesort ..

:O

i've actually been working on an in-place merge for about a week. seems my brain wants me to solve this one.
by dafhi
Aug 13, 2019 1:02
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 19195

Re: StringArray Sort (case independent)

cool stuff dodicat. u know i love quicksort. u can static j in sortup() pretend both J & I static if j >begin ' destroyed I J not a concern, first explicit recursion if i <finish ' destroyed I J a concern, but only 'i' and 'finish' used @ this line [edit:] one might be able to do same w 'BEGIN.'...
by dafhi
Jul 22, 2019 15:44
Forum: Tips and Tricks
Topic: outlier sort concept
Replies: 0
Views: 5041

outlier sort concept

update: speed-tested. this sort is slow enjoy! /' outlier sort concept by dafhi - 2019 July 22 - description - array: 2 1 0 index 0 "tension" = 2 index 1 "tension" = 0 index 2 "tension" = -2 additional array "index()" of experimental size between 2 and len(arr...
by dafhi
May 06, 2019 4:47
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 101
Views: 25404

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

@Tourist Trap .. DPI: error loading shcore.dll

FXG861: engaging! music sets a great atmosphere
by dafhi
Apr 17, 2019 19:08
Forum: Community Discussion
Topic: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2
Replies: 101
Views: 25404

Re: "A Love Letter To FreeBASIC" Game Dev Competition (Feb 2019 –Mar 2019) - Round 2

could always postpone. i mean .. another compo with possibility of more interested parties .. couldn't hurt

Go to advanced search