You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [issue-105] Removed an obselete test.
* [issue-105] Improved the name of the class. The class comment says it is a generator.
* [issue-105] Improved the name of the class.
* [issue-105] Extracted duplicate code to an intention-revealing method.
* [issue-105] Extracted duplicate code to a helper method.
* [issue-105] Inlined the method as it's only used in one place.
* [issue-105] Improved the name of the method.
* [issue-105] Corrected code style.
* [issue-105] Improved the name of the method.
* [issue-105] Removed obselete code.
* [issue-105] Corrected the category.
* [issue-105] Improved the names of the methods.
* [issue-105] Improved the names of the method.
* [issue-105] Removed obselete test.
* [issue-105] Brought back a test deleted accidentally.
* [issue-105] Made similar code even more similar.
* [issue-105] Moved the code to a better place, an intention-revealing method.
* [issue-105] Made the code consistent with that of the other tests. This reads a little better now.
* [issue-105] Made similar code look the same, improved the name of a test method by using domain language.
Copy file name to clipboardExpand all lines: src/Math-Random/PMPseudoRandomNumberGenerator.class.st
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -31,16 +31,16 @@ And finally, there's a taxonomy more related with the internal implementation, b
31
31
32
32
"
33
33
Class {
34
-
#name : #PMRandomGenerator,
34
+
#name : #PMPseudoRandomNumberGenerator,
35
35
#superclass : #Object,
36
36
#instVars : [
37
37
'seed'
38
38
],
39
-
#category : 'Math-Random'
39
+
#category : #'Math-Random'
40
40
}
41
41
42
42
{ #category : #testing }
43
-
PMRandomGeneratorclass>>chiSquare: range repeating: anInteger [
43
+
PMPseudoRandomNumberGeneratorclass>>chiSquare: range repeating: anInteger [
44
44
"Run a 'chi-square' test on a random number generator, over a range of integers given by range, repeating anInteger times.
45
45
Answer an Array containing the result of the chi-square test (which should be the same as the range), and the upper and lower bounds for 'good' randomness (assuming that anInteger is at least 10 * range)."
46
46
@@ -64,29 +64,29 @@ PMRandomGenerator class >> chiSquare: range repeating: anInteger [
0 commit comments