Skip to content

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

@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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions