The textbook (microeconometrics using stata) said,
For reproducibility of results, however, it is best to actually set the initial seed by using
Code:
set seed
. Then if the program is rerun at a later time or by a different researcher, the same results will be obtained.
However,
Code:
set seed 10101
scalar u = runiform()
display u
My display value is different from the textbook's.