Skip to content

What does rand('state', 0) mean? Why is it discouraged by MATLAB? #181

@victor158128

Description

@victor158128

there is a line in test_example_CNN.m that says "rand('state', 0)". When I looked it up on MATLAB, it is discouraged to use it. Instead, "rng(0)" is recommended. But when I used "rng(0)" and varied my kernel size, the error rate is vastly differently from using "rand('state', 0)". Is every generator other than "twister" flawed? Does that mean the result that "state" generator gives is also flawed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions