Basic Stamp BS2P - Random
Creative
Posts: 11
Hi, I would like to have more details on the software. For the random function, does it only reach the limit of pseudo randomization meaning it would only generate a fixed sequence rather then having a intelligent output results of random sequence. If so, is there other way where i could generate this function and can the seed value be randomize?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Main:
· DO
··· RANDOM lottery
· LOOP UNTIL (Trigger = Yes)
·
· delay = lottery // 11 + 10
This little snippet tumbles the RANDOM function until the trigger input is activated -- after that the now random value is used to create a delay between 10 and 20 units.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax