LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 24 Apr 2007 11:02:37 -0400
Reply-To:   Jianhua Guo <jg2nh@virginia.edu>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Jianhua Guo <jg2nh@VIRGINIA.EDU>
Organization:   University of Virginia
Subject:   on randomly generating a vector
Comments:   To: sas-l@uga.edu

Hi, there,

Here is a question:

How can I randomly generate a vector with a fixed length, and each of the element is 0 or 1, and the sum of the 1's equals another fixed value?

Thanks in advance.


Back to: Top of message | Previous page | Main SAS-L page