daily-random
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

daily-random

This package solves a simple issue - you need a consistent random number between 0 and 1 every day. In my case I needed a random seed between 0 and 1 that would work as a seed for a shuffle algorithm. I needed it to be consistent across all users every day and be different the next day.

Usage

import generateDailyRandomNumber from "daily-random";

const dailyRandom = generateDailyRandomNumber(); // 0.9516682408248016

Readme

Keywords

Package Sidebar

Install

npm i daily-random

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

3.49 kB

Total Files

13

Last publish

Collaborators

  • jcpsimmons