apache/spark — pull request #3216 by davies (2014-11-12 01:49:14+00:00)
Title: [SPARK-4348] [PySpark] [MLlib] rename random.py to rand.py

This PR rename random.py to rand.py to avoid the side affects of conflict with random module, but still keep the same interface as before.

```
>>> from pyspark.mllib.random import RandomRDDs
```

```
$ pydoc pyspark.mllib.random
Help on module random in pyspark.mllib:
NAME
random - Python package for random data generation.

FILE
/Users/davies/work/spark/python/pyspark/mllib/rand.py

CLASSES
__builtin__.object
pyspark.mllib.random.RandomRDDs

class RandomRDDs(__builtin__.object)
| Generator methods for creating RDDs comprised of i.i.d samples from
| some distribution.
|
| Static methods defined here:
|
| normalRDD(sc, size, numPartitions=None, seed=None)
```

cc @mengxr