Skip to content

Commit

Permalink
v3.0.5-esm.2 -- repackaged module, created standard .js ESM exports
Browse files Browse the repository at this point in the history
  • Loading branch information
shanewholloway committed Dec 8, 2024
1 parent 68545d7 commit b8ef453
Show file tree
Hide file tree
Showing 38 changed files with 1,590 additions and 3,634 deletions.
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Unit tested for number generator compatability with original [seedrandom][] Comm

## Demo

GitHub Pages-based [Live demo](https://shanewholloway.github.io/js-esm-seedrandom/index.html)
[Live demo](https://shanewholloway.github.io/js-esm-seedrandom/index.html)


## Use
Expand Down Expand Up @@ -63,7 +63,7 @@ or direclty from HTML,

```html
<script type="module">
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/alea.min.mjs'
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/alea.min.js'
let myrng = prng_alea('an example seed string')
Expand Down Expand Up @@ -102,17 +102,17 @@ or in HTML,

```html
<script type='module'>
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.mjs'
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.js'
// or use the individual algorithms by module
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/alea.min.mjs'
import {prng_xor128} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xor128.min.mjs'
import {prng_tychei} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/tychei.min.mjs'
import {prng_xorwow} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xorwow.min.mjs'
import {prng_xor4096} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xor4096.min.mjs'
import {prng_xorshift7} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xorshift7.min.mjs'
import {prng_arc4} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/arc4.min.mjs'
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/alea.min.js'
import {prng_xor128} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xor128.min.js'
import {prng_tychei} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/tychei.min.js'
import {prng_xorwow} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xorwow.min.js'
import {prng_xor4096} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xor4096.min.js'
import {prng_xorshift7} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xorshift7.min.js'
import {prng_arc4} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/arc4.min.js'
</script>
```

Expand Down Expand Up @@ -150,6 +150,7 @@ In NodeJS [unittests][gh-actions-unittests], validation of state snapshot compat
[gh-actions-unittests]: https://github.com/shanewholloway/js-esm-seedrandom/actions?query=workflow%3A%22Node.js+CI%22


## LICENSE (MIT)
## License (MIT)

[MIT](./LICENSE)

[MIT LICENSE](./LICENSE)
8 changes: 4 additions & 4 deletions docs/alea.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ alea, a 53-bit multiply-with-carry generator by Johannes Baagøe.

```javascript
import {prng_alea} from 'esm-seedrandom'
import {prng_alea} from 'esm-seedrandom/esm/alea.mjs'
import prng_alea from 'esm-seedrandom/esm/alea.mjs'
import {prng_alea} from 'esm-seedrandom/esm/alea.js'
import prng_alea from 'esm-seedrandom/esm/alea.js'

// from a browser or deno environment
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.mjs'
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/alea.min.mjs'
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.js'
import {prng_alea} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/alea.min.js'


let myrng = prng_alea('an example seed string', {state: true})
Expand Down
8 changes: 4 additions & 4 deletions docs/arc4.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ The original ARC4-based prng included in the [seedrandom][] library.

```javascript
import {prng_arc4} from 'esm-seedrandom'
import {prng_arc4} from 'esm-seedrandom/esm/arc4.mjs'
import prng_arc4 from 'esm-seedrandom/esm/arc4.mjs'
import {prng_arc4} from 'esm-seedrandom/esm/arc4.js'
import prng_arc4 from 'esm-seedrandom/esm/arc4.js'

// from a browser or deno environment
import {prng_arc4} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.mjs'
import {prng_arc4} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/arc4.min.mjs'
import {prng_arc4} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.js'
import {prng_arc4} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/arc4.min.js'


let myrng = prng_arc4('an example seed string', {state: true})
Expand Down
8 changes: 4 additions & 4 deletions docs/tychei.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ number generator derived from ChaCha, a modern stream cipher.

```javascript
import {prng_tychei} from 'esm-seedrandom'
import {prng_tychei} from 'esm-seedrandom/esm/tychei.mjs'
import prng_tychei from 'esm-seedrandom/esm/tychei.mjs'
import {prng_tychei} from 'esm-seedrandom/esm/tychei.js'
import prng_tychei from 'esm-seedrandom/esm/tychei.js'

// from a browser or deno environment
import {prng_tychei} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.mjs'
import {prng_tychei} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/tychei.min.mjs'
import {prng_tychei} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.js'
import {prng_tychei} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/tychei.min.js'


let myrng = prng_tychei('an example seed string', {state: true})
Expand Down
8 changes: 4 additions & 4 deletions docs/xor128.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ xor128, a pure xor-shift generator by George Marsaglia.

```javascript
import {prng_xor128} from 'esm-seedrandom'
import {prng_xor128} from 'esm-seedrandom/esm/index.mjs'
import prng_xor128 from 'esm-seedrandom/esm/index.mjs'
import {prng_xor128} from 'esm-seedrandom/esm/index.js'
import prng_xor128 from 'esm-seedrandom/esm/index.js'

// from a browser or deno environment
import {prng_xor128} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.mjs'
import {prng_xor128} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xor128.min.mjs'
import {prng_xor128} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.js'
import {prng_xor128} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xor128.min.js'


let myrng = prng_xor128('an example seed string', {state: true})
Expand Down
8 changes: 4 additions & 4 deletions docs/xor4096.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ collisions.

```javascript
import {prng_xor4096} from 'esm-seedrandom'
import {prng_xor4096} from 'esm-seedrandom/esm/xor4096.mjs'
import prng_xor4096 from 'esm-seedrandom/esm/xor4096.mjs'
import {prng_xor4096} from 'esm-seedrandom/esm/xor4096.js'
import prng_xor4096 from 'esm-seedrandom/esm/xor4096.js'

// from a browser or deno environment
import {prng_xor4096} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.mjs'
import {prng_xor4096} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xor4096.min.mjs'
import {prng_xor4096} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.js'
import {prng_xor4096} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xor4096.min.js'


let myrng = prng_xor4096('an example seed string', {state: true})
Expand Down
8 changes: 4 additions & 4 deletions docs/xorshift7.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ with 256 bits, that passes BigCrush with no systmatic failures.

```javascript
import {prng_xorshift7} from 'esm-seedrandom'
import {prng_xorshift7} from 'esm-seedrandom/esm/xorshift7.mjs'
import prng_xorshift7 from 'esm-seedrandom/esm/xorshift7.mjs'
import {prng_xorshift7} from 'esm-seedrandom/esm/xorshift7.js'
import prng_xorshift7 from 'esm-seedrandom/esm/xorshift7.js'

// from a browser or deno environment
import {prng_xorshift7} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.mjs'
import {prng_xorshift7} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xorshift7.min.mjs'
import {prng_xorshift7} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.js'
import {prng_xorshift7} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xorshift7.min.js'


let myrng = prng_xorshift7('an example seed string', {state: true})
Expand Down
8 changes: 4 additions & 4 deletions docs/xorwow.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ xorwow, George Marsaglia's 160-bit xor-shift combined plus weyl.

```javascript
import {prng_xorwow} from 'esm-seedrandom'
import {prng_xorwow} from 'esm-seedrandom/esm/xorwow.mjs'
import prng_xorwow from 'esm-seedrandom/esm/xorwow.mjs'
import {prng_xorwow} from 'esm-seedrandom/esm/xorwow.js'
import prng_xorwow from 'esm-seedrandom/esm/xorwow.js'

// from a browser or deno environment
import {prng_xorwow} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.mjs'
import {prng_xorwow} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xorwow.min.mjs'
import {prng_xorwow} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/index.min.js'
import {prng_xorwow} from '//cdn.jsdelivr.net/npm/esm-seedrandom/esm/xorwow.min.js'


let myrng = prng_xorwow('an example seed string', {state: true})
Expand Down
Loading

0 comments on commit b8ef453

Please sign in to comment.