@types/random-seed
TypeScript icon, indicating that this package has built-in type declarations

0.3.5 • Public • Published

Installation

npm install --save @types/random-seed

Summary

This package contains type definitions for random-seed (https://github.com/skratchdot/random-seed/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/random-seed.

index.d.ts

export interface RandomSeed {
    (range: number): number;
    range(range: number): number;
    random(): number;
    floatBetween(min: number, max: number): number;
    intBetween(min: number, max: number): number;

    string(count: number): string;
    seed(seed: string): void;

    cleanString(inStr: string): string;
    hashString(inStr: string): string;

    addEntropy(...args: any[]): void;
    initState(): void;

    done(): void;
}

export function create(seed?: string): RandomSeed;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Endel Dreyer.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/random-seed

Weekly Downloads

63,098

Version

0.3.5

License

MIT

Unpacked Size

3.54 kB

Total Files

5

Last publish

Collaborators

  • types