[R] .Random.seed for the Mersenne Twister
Luca Passalacqua
|uc@@p@@@@|@cqu@ @end|ng |rom un|rom@1@|t
Thu Jan 9 10:18:01 CET 2020
Dear R users,
inspecting .Random.seed for the Mersenne Twister (MT) I find (many)
negative values for the
624 values of the initial state of the generator.
It seems to me that this is a bug (an unsigned integer mapped to a signed
integer ?),
since, to my understanding, the R version of MT should be working with
32-bits unsigned long.
Moreover, this prevents starting the generator by setting .Random.seed to
user provided
values.
Could someone please provide some insight to this issue ?
Many thanks,
Luca Passalacqua
> RNGkind('default')> RNGkind()[1] "Mersenne-Twister" "Inversion" > set.seed(1)> .Random.seed [1] 403 624 -169270483 -442010614 -603558397 ...
--
Luca Passalacqua
Department of Statistics
University of Rome "La Sapienza"
Viale Regina Elena, 295
00161 Rome (Italy)
luca.passalacqua using uniroma1.it
--
________________________________________________________
Le informazioni
contenute in questo messaggio di posta elettronica sono strettamente
riservate e indirizzate esclusivamente al destinatario. Si prega di non
leggere, fare copia, inoltrare a terzi o conservare tale messaggio se non
si è il legittimo destinatario dello stesso. Qualora tale messaggio sia
stato ricevuto per errore, si prega di restituirlo al mittente e di
cancellarlo permanentemente dal proprio computer.
The information
contained in this e mail message is strictly confidential and intended for
the use of the addressee only. If you are not the intended recipient,
please do not read, copy, forward or store it on your computer. If you have
received the message in error, please forward it back to the sender and
delete it permanently from your computer system.
[[alternative HTML version deleted]]
More information about the R-help
mailing list