0.7.8 • Published 7 months ago

@aryth/rand v0.7.8

Weekly downloads
32
License
MIT
Repository
github
Last release
7 months ago

@aryth/rand

npm version npm download monthly npm download total npm dependents npm license pp install size github commit last github commit total

//: <> (Shields)

//: <> (Link)

Math util library

Features

Install

$ npm install @aryth/rand

Usage

Norm Definition

R0 = 3.442619855899: This is the start of the tail region of the normal distribution. It's the x-coordinate beyond which the algorithm handles the "tail" of the distribution specially. This value is chosen so that the tail can be efficiently sampled.

R1 = 1.0 / R0: This is simply the reciprocal of R0, used in the tail sampling portion of the algorithm.

R0S = exp(-0.5 R0 R0): This represents the height of the normal probability density function at the point R0. It's the y-coordinate of the normal curve at the tail cutoff point.

VN = 9.91256303526217e-3: This constant represents the volume of the base rectangle in the norm structure. It's a carefully chosen value that makes the algorithm efficient.

M1 = 2147483648.0: This is 2^31, the maximum value that can be represented in a 32-bit signed integer. It's used as a scaling factor to convert between floating-point and integer representations.

N2P32 = -0x100000000: This is -2^32, used in the uniform random number generator (rand() method). It helps scale the output of the xorshift() function to produce numbers in the 0,1 range.

Meta

LICENSE (MIT)

0.7.2

12 months ago

0.7.4

8 months ago

0.7.3

12 months ago

0.7.6

7 months ago

0.7.5

8 months ago

0.7.8

7 months ago

0.7.7

7 months ago

0.7.0

1 year ago

0.6.9

3 years ago

0.6.7

3 years ago

0.6.8

3 years ago

0.6.3

3 years ago

0.6.5

3 years ago

0.6.4

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.10

3 years ago

0.5.4

3 years ago

0.5.3

4 years ago

0.5.6

3 years ago

0.5.0

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.9

3 years ago

0.4.10

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.7

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.3.26

4 years ago

0.3.23

4 years ago

0.3.22

4 years ago

0.3.20

4 years ago

0.3.21

4 years ago

0.3.19

4 years ago

0.3.18

5 years ago

0.3.17

5 years ago

0.3.16

5 years ago

0.3.15

5 years ago

0.3.14

5 years ago

0.3.13

5 years ago

0.3.11

5 years ago

0.3.7

5 years ago

0.3.10

5 years ago

0.3.6

5 years ago

0.3.4

5 years ago

0.3.2

5 years ago

0.3.3

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.14

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.1.14

5 years ago

0.2.0

5 years ago

0.1.13

5 years ago

0.1.11

5 years ago

0.1.12

5 years ago

0.1.10

5 years ago

0.1.8

5 years ago

0.1.9

5 years ago

0.1.7

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago