|
From: | Dmitri A. Sergatskov |
Subject: | Re: Rand implementation question |
Date: | Thu, 27 Feb 2014 20:54:18 -0600 |
I have had intermittent strange behavior when attempting to use the rand
function to create binary digits that I would like advice about.
I usually use an _expression_ like the following to produce a random binary
digit of either '0' or '1'
digits = round (rand(size(1:8)) + 0.5)
[Prev in Thread] | Current Thread | [Next in Thread] |