Search found 2 matches

by Territan
Sat Jun 04, 2016 11:40 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Randomness Test Gone Horribly Wrong
Replies: 10
Views: 9056

Re: Randomness Test Gone Horribly Wrong

Hi Territan,

if you change your code to
-- content snipped --
it works. See output to the message box of the sum of all 6 lines.

With a little independent testing, I stumbled upon the same idea: Put the random value into a bucket first, and use it to pick the line to add to. Accessing the field ...
by Territan
Fri Jun 03, 2016 12:14 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Randomness Test Gone Horribly Wrong
Replies: 10
Views: 9056

Randomness Test Gone Horribly Wrong

Now, understand that I've been a stack user since the original Hypercard. Which is why this behavior is so shocking.

I put a single field, named "fldRandomResults" and extended so that I could see at least six lines of it, and a single button, on a card.

The button had the following script on it ...