« first day (864 days earlier)      last day (1564 days later) » 

12:03 AM
Broadly speaking, is this even possible? I've been roaming around the Win32 API and trying to make sense of the C++ examples based on my novice level grasp of C#, and am having trouble seeing how I can go from IAccessible to ITheInterfaceIReallyWant.
 
3 messages moved from Lounge<C++>
 
MrP
12:29 AM
hi
does anyone have a deterministic algorithm to generate random integer points in a X by Y grid?
@milleniumbug Yes but I can't find an applicable PRNG algorithm that does what I need it to
 
3 messages moved from Lounge<C++>
 
MrP
@CatPlusPlus Do you not understand what I mean by "deterministic"?
As in, given the same seed, you get the same output each time
But it "looks" random
yes
ah, ok
I guess it feels weird for me to imply that it's non-deterministic since it technically is deterministic
anyways, I can't find any working algorithm that does what I need it to
(I'm trying not to rely on built-in libraries using random() and whatnot)
is there a simple/straightforward method?
@Telkitty猫咪咪 what
Not in the way I want, though (as far as I can tell)
@Telkitty猫咪咪 What's so funny?
@Telkitty猫咪咪 Well if you can't explain what's funny...
@CatPlusPlus The ability to generate random points in an X by Y grid with some control over density
@milleniumbug Yes, I already know that
@Telkitty猫咪咪 it's not obvious since there's nothing wrong with what I said, so you must be finding something funny that is pedantic and therefore not that funny
@CatPlusPlus Yes, it's a distribution attribute
Not density around a point; by density I mean the concentration of points (number of distinct points in the grid)
0 density being 0 points, full density being all (X+1)(Y+1) points
Problem is that many pseudorandom algorithms have a period and therefore no real control over relative density
so even at max iteration you only get some finite number of values that may not be normally distributed based on the structure of the generator
@GManNickG Might be complicated since I am only looking to generate integer lattice points in the grid
@Telkitty猫咪咪 Stop trolling please. I came in here specifically asking for something that isn't "truly random" so you misunderstood.
"writing the function" is exactly the question
@Telkitty猫咪咪 It's a lot harder than you're making it sound, try actually implementing it and you'll run into a variety of problems
Part of it may be my inability to articulate what I am after (English isn't my first language) but it's not a trivial problem
 
12:54 AM
26 messages moved from Lounge<C++>
 
MrP
@GManNickG I am saying that the locality is irrelevant -- uniform distribution across each axis with respect to a given point (so it's like generating a random number from 1 to X*Y uniformly), but with the ability to dictate how many numbers are chosen, and to have the resulting distribution of chosen points be deterministically generated by some seed
 
1 message moved from Lounge<C++>
 
 
11 hours later…
12:05 PM
user image
2
@R.MartinhoFernandes YOLO
 
2 messages moved from Lounge<C++>
 
 
6 hours later…
6:26 PM
Overloads?
 
1 message moved from Lounge<C++>
 

« first day (864 days earlier)      last day (1564 days later) »