Re: Searching variables with regex?
- I wrote:
>If of interest to anyone, I utilized the following makeshift clip to better test "fairness" of various randomizing takes:
> ^!Set %n%=^$Calc(FLOOR(RND(^%ar0%)+1))$
;Number of random numbers to generate +1
;Number of alternatives (array elements), min 2/max 8
^!If ^%i%=0 Count
;Variants of getting random numbers
^!If ^%i%>^%alt% Done
^!Append %res%=Alt ^%i%: ^%h% hits
^!Append %res%=, ^$Calc(^%h%/^$StrSize(^%rnd%)$*100;2)$%^%nl%
^!Set %i%=; %alt%=; %method%=; %rnd%=; %h%; %res%=
For a more accurate illustration, this obviously could be furthered to average data collected from multiple runs.
- See? There's always someone ready to apply the rules even when I thought I was doing something harmless?!! <ahem> sry 'bout that.. point taken. will visit over there.....
--- In firstname.lastname@example.org, Axel Berger <Axel-Berger@...> wrote:
> Paul wrote:
> > I only stiffly object to copied work when it is purported to be
> > ones own work. In the early stages of professional development
> > I advocate reprimand and retraining.
> This is beginning to drift off the topic od clips, My answer certainly
> is, which is why I just posted it to the off-topic list.