Skip to content

First PN.RND after P.SEED isn't random #337

Description

@mikeyford

Please describe the bug.

The first call to PN.RND always returns the same value, after seeding the randomization via P.SEED with any seed. Subsequent calls of PN.RND are random.

I'm happy to look into this, but please let me if you have any pointers or I'm misunderstanding the feature.

Please include the hash displayed at startup and the release of the software (e.g. "Teletype v2.0.1 5f838c9")

Teletype v5.0.0 00FDFD2

What steps are required to reproduce the bug?

fill pattern 0 with values
P.SEED x
PN.RND 0
will always return the same value, regardless of x

Alternatively, filling 0 with values, and pattern 1 with seeds, then create a script like:

P.SEED PN.NEXT1
PN.NEXT 2 PN.RND 0

then trigger the script repeatedly to fill pattern 2 with the same value

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

      Issue actions