Article View: comp.sys.transputer
Article #2933Problem with Occam RAN function
From: Paul
Date: Wed, 14 Mar 1990 14:17
Date: Wed, 14 Mar 1990 14:17
16 lines
742 bytes
742 bytes
I've been trying to use the RAN function with very little success. Sounds
simple enough - but it just doesn't seem to work.
This is my test program :
INT32 x :
REAL32 y :
INT k :
TIMER clock :
SEQ
clock ? k
x := INT32 k
SEQ i = 0 FOR 10
y,x := RAN(x)
>From this routine I would expect 10 random real numbers - I get rubbish,
can someone enlighten me ?
Technical Details
Message-ID:
<24069.9003141417@prsun7.prl.philips.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!prl.philips.co.uk!simonsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!ucbvax!prl.philips.co.uk!simons From: simons@prl.philips.co.uk (Paul) Newsgroups: comp.sys.transputer Subject: Problem with Occam RAN function Message-ID: <24069.9003141417@prsun7.prl.philips.co.uk> Date: 14 Mar 90 14:17:22 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 16