Search found 1246 matches

by dafhi
Nov 09, 2019 21:55
Forum: General
Topic: Squares
Replies: 7240
Views: 437634

Re: Squares

weird. only thing i can think would be to move
screenlock
screenunlock

around the entire rendering loop

going for a walk.
by dafhi
Nov 09, 2019 21:33
Forum: General
Topic: Squares
Replies: 7240
Views: 437634

Re: Squares

'' paste doodle framework code from: https://www.freebasic.net/forum/viewtopic.php?f=3&p=266022#p266022 '' -------------------------- radius = 57 divisions = 45 rad1 = atn(1) / divisions rad2 = atn(1) / (divisions/2) fullcircle = 359 'atn(1)*8 / rad1 toggle = 0 for deg1 = 0 to fullcircle * 2 st...
by dafhi
Nov 09, 2019 21:16
Forum: General
Topic: Squares
Replies: 7240
Views: 437634

Re: Squares

doodle framework type imagevars as integer w,h,bpp,bypp,pitch,rate, wm, hm, pitchBy, num_pages, flags as any ptr im, pixels as ulong ptr p32 as string driver_name declare sub get_info(im as any ptr=0) as single wh, hh, diagonal declare sub destroy declare destructor declare constructor declare const...
by dafhi
Nov 09, 2019 2:14
Forum: General
Topic: Squares
Replies: 7240
Views: 437634

better late than never

a little foray into easing functions type myint as integer #define def #define #undef int def int as myint def sng as single def dbl as double type imagevars '' 2018 Jan 9 - by dafhi '1. quick reference for ScreenInfo & ImageInfo '2. encapsulate standard metrics '3. convenient additional vars, s...
by dafhi
Oct 31, 2019 23:52
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 61
Views: 1942

Re: Unable to access fb.net forums

@delta - i myself have a problem with judgemental thoughts. i appreciated your 'reaching out' post to put my 'ideal me' into perspective
by dafhi
Oct 25, 2019 19:43
Forum: Tips and Tricks
Topic: pure math: 1-64 bit literals
Replies: 0
Views: 128

pure math: 1-64 bit literals

/' 1 to 64-bit integers - 2019 Oct 25 - by dafhi pure / theoretical math applications: bitwise fourier analysis stochastic high period prng development '/ #define def #define '' less typing type statelit as ulongint '' ubyte to ulongint (uint64) def seq_state as statelit type vBits '' 1 to 64-bit i...
by dafhi
Oct 25, 2019 19:35
Forum: Tips and Tricks
Topic: ScanLine3D()
Replies: 4
Views: 335

Re: ScanLine3D()

something like this #ifndef pi Const Pi = 4 * Atn(1) const TwoPi = 8 * Atn(1) #endif type v3 as single x,y,z declare property len as double declare sub normalize declare sub rand End Type property v3.len as double: return sqr(x*x+y*y+z*z) End Property sub v3.normalize: var slen=x*x+y*y+z*z if slen <...
by dafhi
Oct 05, 2019 7:31
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 938

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: 938

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: 938

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: 1268

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: 938

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: 938

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: 3847

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: 2231

Re: Fastest PRNG around, the XORSHIFT

this does well in my monte carlo sim

Code: Select all

x *= x
x xor= w
w += 1

Go to advanced search