Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

AttributeError: module 'mkl_random' has no attribute 'RandomState' #44

Copy link
Copy link
@sky-y11

Description

@sky-y11
Issue body actions

The examples you give:

import mkl_random
rs = mkl_random.RandomState(seed=777, brng="MT19937")

The following error pops up after I run it:
AttributeError: module 'mkl_random' has no attribute 'RandomState'

I changed one of the import methods after I tried it and it worked:

from mkl_random import mklrand
rs = mklrand.RandomState(seed=777, brng="MT19937")
random_integers = rs.randint(0, 10, size=10)

I don't know if that's right. Maybe you should update the documentation?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.