Github user mengxr commented on the pull request:
https://github.com/apache/spark/pull/1628#issuecomment-50574345
@dorx I tried `import pyspark.mllib.random` and it failed. It has to be
`from pyspark.mllib import random`. And to use `RandomRDDGenerators`, I need to
call `random.RandomRDDGenerators`. Ideally, it should be `from
pyspark.mllib.random import RandomRDDGenerators`. If we know how to handle the
name `random` now, maybe we can create `random.py` under `mllib` and define
class `RandomRDDGenerators` there. If it is not easy to do that because of
python's own `random` package, it should be fine to rename the package name to
`rand` in both Python and Scala.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---