Skip to content

Commit be0df3d

Browse files
committed
Auto-generated commit
1 parent c30a1b9 commit be0df3d

File tree

8 files changed

+37
-29
lines changed

8 files changed

+37
-29
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ indent_style = tab
8686
[*.{f,f.txt}]
8787
indent_style = space
8888
indent_size = 2
89-
insert_final_newline = false
9089

9190
# Set properties for shell files:
9291
[*.{sh,sh.txt}]

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
We are excited about your pull request, but unfortunately we are not accepting pull requests against this repository, as all development happens on the [main project repository](https://github.com/stdlib-js/stdlib). We kindly request that you submit this pull request against the [respective directory](https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/random/base/minstd-shuffle) of the main repository where we’ll review and provide feedback.
44

5-
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/development.md) for help on developing stdlib.
5+
If this is your first stdlib contribution, be sure to read the [contributing guide](https://github.com/stdlib-js/stdlib/blob/develop/CONTRIBUTING.md) which provides guidelines and instructions for submitting contributions. You may also consult the [development guide](https://github.com/stdlib-js/stdlib/blob/develop/docs/contributing/development.md) for help on developing stdlib.
66

77
We look forward to receiving your contribution! :smiley:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,7 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191+
192+
# Cursor #
193+
##########
194+
.cursorignore

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-01-03)
7+
## Unreleased (2025-02-27)
88

99
<section class="bug-fixes">
1010

@@ -23,6 +23,7 @@
2323

2424
<details>
2525

26+
- [`d9c2e28`](https://github.com/stdlib-js/stdlib/commit/d9c2e28c3c0298363e4e846e69d32c49252a14a7) - **docs:** update examples _(by Athan Reines)_
2627
- [`1467fde`](https://github.com/stdlib-js/stdlib/commit/1467fde6e4523af5030c87ee50b9c0c9ea050668) - **docs:** fix include paths in examples _(by Athan Reines)_
2728
- [`7ef177c`](https://github.com/stdlib-js/stdlib/commit/7ef177c87922d543ab59c426c453996a9e51397d) - **fix:** update include paths and reorder includes _(by Athan Reines)_
2829
- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Aadish Jain <jain.aadishj@gmail.com>
66
Aayush Khanna <aayushiitbhu23@gmail.com>
77
Abhijit Raut <abhijitmraut8010@gmail.com>
8+
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
89
Adarsh Palaskar <adarshpalaskar99@gmail.com>
910
Aditya Sapra <adityaework@gmail.com>
1011
Ahmed Atwa <Ahmedatwa866@yahoo.com>
@@ -27,16 +28,20 @@ Daniel Killenberger <daniel.killenberger@gmail.com>
2728
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
2829
Debashis Maharana <debashismaharana7854@gmail.com>
2930
Desh Deepak Kant <118960904+DeshDeepakKant@users.noreply.github.com>
30-
Dhruv/ <154677013+DhruvArvindSingh@users.noreply.github.com>
31+
Dev Goel <135586571+corsairier@users.noreply.github.com>
32+
Dhruv Arvind Singh <154677013+DhruvArvindSingh@users.noreply.github.com>
3133
Divyansh Seth <59174836+sethdivyansh@users.noreply.github.com>
3234
Dominic Lim <46486515+domlimm@users.noreply.github.com>
3335
Dominik Moritz <domoritz@gmail.com>
3436
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
3537
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
3638
Frank Kovacs <fran70kk@gmail.com>
39+
GK Bishnoi <gkishan1kyt@gmail.com>
40+
Gaurav <gaurav70380@gmail.com>
3741
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
3842
Gunj Joshi <gunjjoshi8372@gmail.com>
39-
Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com>
43+
Gururaj Gurram <gururajgurram1512@gmail.com>
44+
Harsh <149176984+hrshya@users.noreply.github.com>
4045
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
4146
Harshita Kalani <harshitakalani02@gmail.com>
4247
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
@@ -50,8 +55,10 @@ Joey Reed <joeyrreed@gmail.com>
5055
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
5156
Joris Labie <joris.labie1@gmail.com>
5257
Justin Dennison <justin1dennison@gmail.com>
58+
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
5359
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
5460
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
61+
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
5562
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
5663
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
5764
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
@@ -61,6 +68,7 @@ Marcus Fantham <mfantham@users.noreply.github.com>
6168
Matt Cochrane <matthew.cochrane.eng@gmail.com>
6269
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
6370
Milan Raj <rajsite@users.noreply.github.com>
71+
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
6472
Mohammad Kaif <mdkaifprofession@gmail.com>
6573
Momtchil Momtchev <momtchil@momtchev.com>
6674
Muhammad Haris <harriskhan047@outlook.com>
@@ -88,6 +96,7 @@ Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
8896
Ricky Reusser <rsreusser@gmail.com>
8997
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
9098
Rishav <115060907+rishav2404@users.noreply.github.com>
99+
Rishav Tarway <rishavtarway@gmail.com>
91100
Robert Gislason <gztown2216@yahoo.com>
92101
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
93102
Rutam Kathale <138517416+performant23@users.noreply.github.com>
@@ -98,6 +107,7 @@ Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
98107
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
99108
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
100109
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
110+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
101111
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
102112
Shivam Ahir <11shivam00@gmail.com>
103113
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -108,6 +118,7 @@ Snehil Shah <snehilshah.989@gmail.com>
108118
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
109119
Spandan Barve <contact@marsian.dev>
110120
Stephannie Jiménez Gacha <steff456@hotmail.com>
121+
Suhaib Ilahi <suhaib.elahi87@gmail.com>
111122
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
112123
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
113124
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
@@ -118,10 +129,14 @@ UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
118129
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
119130
Varad Gupta <varadgupta21@gmail.com>
120131
Vinit Pandit <106718914+MeastroZI@users.noreply.github.com>
121-
Vivek maurya <155618190+vivekmaurya001@users.noreply.github.com>
132+
Vivek Maurya <vm8118134@gmail.com>
122133
Xiaochuan Ye <tap91624@gmail.com>
123134
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
124135
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
136+
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
137+
ekambains <bainsinbusiness@gmail.com>
138+
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
125139
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
140+
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
126141
rainn <88160429+AmCodesLame@users.noreply.github.com>
127142
rei2hu <reimu@reimu.ws>

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2016-2024 The Stdlib Authors.
1+
Copyright (c) 2016-2025 The Stdlib Authors.

README.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -122,23 +122,20 @@ var r = rand();
122122
To return a generator having a specific initial state, set the generator `state` option.
123123

124124
```javascript
125-
var rand;
126-
var bool;
125+
// Generate pseudorandom numbers, thus progressing the generator state:
127126
var r;
128127
var i;
129-
130-
// Generate pseudorandom numbers, thus progressing the generator state:
131128
for ( i = 0; i < 1000; i++ ) {
132129
r = minstd();
133130
}
134131

135132
// Create a new PRNG initialized to the current state of `minstd`:
136-
rand = minstd.factory({
133+
var rand = minstd.factory({
137134
'state': minstd.state
138135
});
139136

140137
// Test that the generated pseudorandom numbers are the same:
141-
bool = ( rand() === minstd() );
138+
var bool = ( rand() === minstd() );
142139
// returns true
143140
```
144141

@@ -174,17 +171,15 @@ var max = minstd.MAX;
174171
The value used to seed `minstd()`.
175172

176173
```javascript
177-
var rand;
174+
// Generate pseudorandom values...
178175
var v;
179176
var i;
180-
181-
// Generate pseudorandom values...
182177
for ( i = 0; i < 100; i++ ) {
183178
v = minstd();
184179
}
185180

186181
// Generate the same pseudorandom values...
187-
rand = minstd.factory({
182+
var rand = minstd.factory({
188183
'seed': minstd.seed
189184
});
190185
for ( i = 0; i < 100; i++ ) {
@@ -291,18 +286,15 @@ var o = minstd.toJSON();
291286
```javascript
292287
var minstd = require( '@stdlib/random-base-minstd-shuffle' );
293288

294-
var seed;
295-
var rand;
296-
var i;
297-
298289
// Generate pseudorandom numbers...
290+
var i;
299291
for ( i = 0; i < 100; i++ ) {
300292
console.log( minstd() );
301293
}
302294

303295
// Create a new pseudorandom number generator...
304-
seed = 1234;
305-
rand = minstd.factory({
296+
var seed = 1234;
297+
var rand = minstd.factory({
306298
'seed': seed
307299
});
308300
for ( i = 0; i < 100; i++ ) {

examples/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@
2020

2121
var minstd = require( './../lib' );
2222

23-
var seed;
24-
var rand;
25-
var i;
26-
2723
// Generate pseudorandom numbers...
2824
console.log( '\nseed: %d', minstd.seed[ 0 ] );
25+
var i;
2926
for ( i = 0; i < 100; i++ ) {
3027
console.log( minstd() );
3128
}
3229

3330
// Create a new pseudorandom number generator...
34-
seed = 1234;
35-
rand = minstd.factory({
31+
var seed = 1234;
32+
var rand = minstd.factory({
3633
'seed': seed
3734
});
3835
console.log( '\nseed: %d', seed );

0 commit comments

Comments
 (0)