s-news
[Top] [All Lists]

Question about random number generation in a user defined functio n

To: s-news@lists.biostat.wustl.edu
Subject: Question about random number generation in a user defined functio n
From: "Overstreet, Jason (FL51)" <Jason.Overstreet@honeywell.com>
Date: Thu, 22 Dec 2005 11:38:33 -0700

If you run this function you will randomly have an output of 0, 1, 2, 3, or 4. 

What I would like to know how to do is to:
1)Have this function run 100 times (really 10,000) independently
2) the output of each interation assigned as elements in an array. 

I am thinking that some sort of a loop is mandatory in this situation. 

Any pointers?


<<ET1.ssc>>

Jason Overstreet
Statistician
Honeywell DSES
(727) 539-3964


Attachment: ET1.ssc
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>
  • Question about random number generation in a user defined functio n, Overstreet, Jason (FL51) <=