[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Random number generator

From   "Silcocks Paul" <>
To   <>
Subject   st: Random number generator
Date   Thu, 23 Aug 2007 08:33:31 +0100

Has anyone found a way of incorporating the Mersenne Twister
pseudo-random number generator into Stata? There is freeware C++ code at but I'm not clear how this could be
adapted into an ado file.  What would be nice would be a new version of
uniform(). Stata technical support recommend using Mata as it is closer
in syntax to C++ than the Stata ado language (though this doesn't help
me much as I've not got to grips with Mata).  

Paul Silcocks BM BCh, MSc, FRCPath, FFPH, CStat Clinical Senior Lecturer

Nottingham Clinical Trials Support Unit
Room B39 
School of Community Health Sciences 
University of Nottingham Medical School 

tel +44 115  9515151 x 30514
Direct line: +44 115 8230505. 
General office: +44 115 8230500
fax +44 115 8230515


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

*   For searches and help try:

© Copyright 1996–2023 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index