SRL Archive - Other Scripts

Randoms


scyk123

2009-06-26 22:50:02

Hi all, i'm new here.
Thought I might as well drop some kind of script because I wondered how scar would handle it.

The .Scar file and Excel File are attached but I will explain it all in this post.

The point of this was to see whether or not I would get a different result using a static or dynamic numbers to see if they equaled a randomized variable.

The first function randomizes a number then checks if it is equal to 5 numbers that are the same throughout each trial.

The second function randomizes a number AND randomizes the 5 numbers before equality is checked.

The normal result for each of these would be 5% of the time it equals, of course it never usually does because probability isn't exact.

Surprisingly enough the dynamic function almost always came out with a lower percentage of matches then the static version.

I took 35 tests, placed them into Microsoft Excel, Graphed it(attached) and 84% of the time the Static version came out with a higher number(This should have been done with a larger sample, but that would take too long).

If you know scar scripting well, please check if there are any errors pertaining to the equations or methods.
Not the actual scripting though, i'm not too good at that, i think i left an unused variable =p.

Dynamite

2009-06-26 22:53:02

Title was a bit misleading. Maybe RandomNumbers ?
You definately know some basics ;)
Maybe try an RS script?
Bit more challenging :)

T~M

scyk123

2009-06-26 23:48:13

Sorry, about that =p
Although this is my new account I have plenty of experience with scar, but i'm not claiming to be awesome at it.

Currently I am working on:

1) An Auto-Emailer for Gmail that is as objective as possible(Find BMP's instead of exact coordinates, which is a step up for me because i don't make my scripts public so there was no need to be). The cool part is that you can use an INI file to make your own language that it writes in! =p

2) A more intelligent writing program based on a defined language(somewhat of an off-shoot of 1). Which might actually turn out to be Mad Libs where you define every word.

3)A Limited Minesweeper script, ~500 lines of script for easy so far(maybe ~400 if I got rid of some testing functions). It won't be perfect but a TPA seems to work ok. All it can do right now is recognize very limited positions.

Im not really into RS though, So I'm trying to do a "Music Catch 2" Script where it avoids the bad things and goes after the good ones efficiently, but it is in an alpha stage so far.

Do you have anything to say for the results of the the Random Tests?