Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucretiomsp committed Oct 23, 2024
1 parent b397d38 commit 9aadb6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Coypu/Integer.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ Integer >> modulo: anInteger [

{ #category : '*Coypu' }
Integer >> pattern [
"to create hexBeat, use hexBeat instead"
| arrayOfCharacters s|
arrayOfCharacters := (self printStringBase: 2) asArray.
s := arrayOfCharacters size.
Expand Down Expand Up @@ -429,7 +430,7 @@ Integer >> randomTrigsWithProbability: anIntegerProbability [
PerformanceRecorder uniqueInstance announce: announcement.
rytm := Array new: self.
r := Random new.
(1 to: self) do: [ :i |
1 to: self do: [ :i |
r next < (anIntegerProbability / 100)
ifTrue: [ rytm at: i put: 1 ]
ifFalse: [ rytm at: i put: 0 ] ].
Expand Down

0 comments on commit 9aadb6c

Please sign in to comment.