Skip to content

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

Open
@sky-y11

Description

@sky-y11

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @sky-y11

        Issue actions

          AttributeError: module 'mkl_random' has no attribute 'RandomState' · Issue #44 · IntelPython/mkl_random