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

st: RE: RE: Random number generator

From   "Silcocks Paul" <>
To   <>
Subject   st: RE: RE: Random number generator
Date   Thu, 23 Aug 2007 11:26:22 +0100

My understanding is that this method is fast, passes appropriate tests
and has a huge period (2^19937 -1), much greater than Stata's KISS 

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

-----Original Message-----
[] On Behalf Of Nick Cox
Sent: 23 August 2007 09:22
Subject: st: RE: Random number generator

Why do you feel there is a need for a new version of -uniform()-? 


Paul Silcocks BM BCh, MSc, FRCPath, FFPH, CStat

> 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).

*   For searches and help try:

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