Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

API-level Random instance #7

Description

@MaxWasUnavailable

Is your feature request related to a problem? Please describe.
I feel like it'd be cleaner to have a single random I can reuse everywhere, rather than make one for each mod I have that needs a Random instance.

Describe the solution you'd like
Something akin to

using LethalAPI.Random

// (...)
APIRandom.Next()
// (...)

Describe alternatives you've considered
Using a Random instance per mod that uses it.

Additional context
It's a very minor thing, but there might be benefits to having a "global" random anyone can use. People that require a specific seed still need their own instance, though.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions