You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Vijayasarathy Kannan <kv...@vt.edu> on 2015/03/03 16:08:57 UTC

PRNG in Scala

Hi,

What pseudo-random-number generator does scala.util.Random uses?

Re: PRNG in Scala

Posted by Robin East <ro...@xense.co.uk>.
And this SO post goes into details on the PRNG in Java

http://stackoverflow.com/questions/9907303/does-java-util-random-implementation-differ-between-jres-or-platforms

> On 3 Mar 2015, at 16:15, Robin East <ro...@xense.co.uk> wrote:
> 
> This is more of a java/scala question than spark - it uses java.util.Random : https://github.com/scala/scala/blob/2.11.x/src/library/scala/util/Random.scala <https://github.com/scala/scala/blob/2.11.x/src/library/scala/util/Random.scala>
> 
> 
>> On 3 Mar 2015, at 15:08, Vijayasarathy Kannan <kvijay@vt.edu <ma...@vt.edu>> wrote:
>> 
>> Hi,
>> 
>> What pseudo-random-number generator does scala.util.Random uses?
> 


Re: PRNG in Scala

Posted by Robin East <ro...@xense.co.uk>.
This is more of a java/scala question than spark - it uses java.util.Random : https://github.com/scala/scala/blob/2.11.x/src/library/scala/util/Random.scala


> On 3 Mar 2015, at 15:08, Vijayasarathy Kannan <kv...@vt.edu> wrote:
> 
> Hi,
> 
> What pseudo-random-number generator does scala.util.Random uses?