Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Is there a Difference?' topicStudent Support Forum > General > "Is there a Difference?"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda
12/24/12 4:13pm

Random[] is an old function (superseded by RandomReal and RandomInteger since ver. 6, see documentation) and is not identical to the other two

check this

SeedRandom[100];
RandomReal[NormalDistribution[]]
SeedRandom[100];
Random[NormalDistribution[]]
SeedRandom[100];
RandomVariate[NormalDistribution[]]


the remaining two seems to be identical

Table[(SeedRandom[100];
RandomReal[NormalDistribution[], 10^n]) == (SeedRandom[100];
RandomVariate[NormalDistribution[], 10^n]), {n, 6}]

yehuda





URL: ,

Subject (listing for 'Is there a Difference?')
Author Date Posted
Is there a Difference? D.R. 12/22/12 9:35pm
Re: Is there a Difference? yehuda 12/24/12 4:13pm
< Previous CommentHelp | Reply To Comment | Reply To Topic