Skip to content

What is the best way to with prng? #13

@NNBnh

Description

@NNBnh

Hello, I'm like this package and want to use this for game dev. I'm curious and want to ask for the best practices:

  • What is the best way to shuffle a list (like the list.shuffle function) using prng?
  • What is the best way to take a random sample of k elements from a list (like the list.sample function) using prng?

Should this be a built-in functions or is this out of scope for this package?

Thanks.

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