Skip to content

Commit 8207824

Browse files
committed
Auto-generated commit
1 parent 651d1af commit 8207824

File tree

8 files changed

+33
-27
lines changed

8 files changed

+33
-27
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/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

.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) 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-13)
7+
## Unreleased (2025-02-27)
88

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

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`05cdb8f`](https://github.com/stdlib-js/stdlib/commit/05cdb8f1e70b25fdd7fdaa822d8180fbf9588083) - **docs:** update examples _(by Athan Reines)_
2526
- [`faa4da3`](https://github.com/stdlib-js/stdlib/commit/faa4da3f2c52be1b422d3b08c7ee6b659d848556) - **docs:** fix include paths in examples _(by Athan Reines)_
2627
- [`51ab6ca`](https://github.com/stdlib-js/stdlib/commit/51ab6cac709c2c8a117eac6894b0594ef9184323) - **fix:** update include paths and reorder includes _(by Athan Reines)_
2728
- [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 15 additions & 1 deletion
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>
31+
Dev Goel <135586571+corsairier@users.noreply.github.com>
3032
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>
@@ -53,6 +58,7 @@ Justin Dennison <justin1dennison@gmail.com>
5358
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
5459
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
5560
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
61+
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
5662
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
5763
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
5864
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
@@ -62,6 +68,7 @@ Marcus Fantham <mfantham@users.noreply.github.com>
6268
Matt Cochrane <matthew.cochrane.eng@gmail.com>
6369
Mihir Pandit <129577900+MSP20086@users.noreply.github.com>
6470
Milan Raj <rajsite@users.noreply.github.com>
71+
Mohammad Bin Aftab <48010758+MohammadBinAftab@users.noreply.github.com>
6572
Mohammad Kaif <mdkaifprofession@gmail.com>
6673
Momtchil Momtchev <momtchil@momtchev.com>
6774
Muhammad Haris <harriskhan047@outlook.com>
@@ -89,6 +96,7 @@ Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
8996
Ricky Reusser <rsreusser@gmail.com>
9097
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
9198
Rishav <115060907+rishav2404@users.noreply.github.com>
99+
Rishav Tarway <rishavtarway@gmail.com>
92100
Robert Gislason <gztown2216@yahoo.com>
93101
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
94102
Rutam Kathale <138517416+performant23@users.noreply.github.com>
@@ -99,6 +107,7 @@ Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
99107
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
100108
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
101109
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
110+
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
102111
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
103112
Shivam Ahir <11shivam00@gmail.com>
104113
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -109,6 +118,7 @@ Snehil Shah <snehilshah.989@gmail.com>
109118
Soumajit Chatterjee <121816890+soumajit23@users.noreply.github.com>
110119
Spandan Barve <contact@marsian.dev>
111120
Stephannie Jiménez Gacha <steff456@hotmail.com>
121+
Suhaib Ilahi <suhaib.elahi87@gmail.com>
112122
Suraj Kumar <125961509+kumarsuraj212003@users.noreply.github.com>
113123
Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
114124
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
@@ -123,6 +133,10 @@ Vivek Maurya <vm8118134@gmail.com>
123133
Xiaochuan Ye <tap91624@gmail.com>
124134
Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
125135
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>
126139
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
140+
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
127141
rainn <88160429+AmCodesLame@users.noreply.github.com>
128142
rei2hu <reimu@reimu.ws>

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 r;
179176
var i;
180-
181-
// Generate pseudorandom values...
182177
for ( i = 0; i < 100; i++ ) {
183178
r = 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++ ) {
@@ -290,18 +285,15 @@ var o = minstd.toJSON();
290285
```javascript
291286
var minstd = require( '@stdlib/random-base-minstd' );
292287

293-
var seed;
294-
var rand;
295-
var i;
296-
297288
// Generate pseudorandom numbers...
289+
var i;
298290
for ( i = 0; i < 100; i++ ) {
299291
console.log( minstd() );
300292
}
301293

302294
// Create a new pseudorandom number generator...
303-
seed = 1234;
304-
rand = minstd.factory({
295+
var seed = 1234;
296+
var rand = minstd.factory({
305297
'seed': seed
306298
});
307299
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)