kyma•tweaky . How . GetTwoRandomNumbers |
((!Trigger nextRandomWithSeed: 222) + (!Trigger nextRandomWithSeed: 65)) * 0.5The expression above would give you a new random number on each !Trigger, from a triangular distribution. Contrary to expectation, using a seed does not ensure repeatability in CapyTalk expressions. (This is something we'd like to alter in the future). -- CarlaScaletti - 11 Nov 2005
WebForm | |
---|---|
Question: | How can I ensure that two different random number streams in the same CapyTalk expression are uncorrelated with each other? |
Keywords: | seed random CapyTalk? triangular distribution |
----- Revision r1.1 - 11 Nov 2005 - 20:36 GMT - CarlaScaletti
|