Results 1 to 1 of 1
-
01-13-2006, 12:55 PM #1Enrico SchirattiGuest
pmsystem logics section: random values
Hi,
it had been asked a while back, but I never added it to the
docs or mentioned it... there is a system variable called
"random", which each logics cycle generates a new value
between 0 and 1000.
You can use it for all sorts of things, such as random
failures... thus:
if random = 666 then
[dothisandthat]
endif
To make it rarer, you can add another variable and make it
count up to a given threshold.
I updated the doc with that and am also working on a
description for the native phidget support as well (beyond
the phidgets.txt file comments).
Ciao
Enrico
Similar Threads
-
Engine Start logics
By jimthomasjohnston in forum PMSystemsReplies: 6Last Post: 08-05-2008, 02:43 PM -
Just a random thought or two...
By Michael Carter in forum I/O Interfacing Hardware and SoftwareReplies: 20Last Post: 12-05-2007, 10:55 PM -
Logics in pmsystems...
By Bogysim in forum PM General Q & AReplies: 4Last Post: 01-04-2007, 05:17 PM -
[logics] in Include-file
By Thomas Richter in forum PM General Q & AReplies: 1Last Post: 01-06-2005, 01:36 PM -
Random Number
By null null in forum PM General Q & AReplies: 4Last Post: 11-24-2004, 04:00 PM
Looking for Fun? Connect with Women Seeking Casual Encounters in Your Town
JH startup on Client PC