Skip to content

Commit b0a1d8c

Browse files
authored
Merge pull request #3426 from floholl/dev
Replace rand_type with use_random_source in lang reference entry for the latter
2 parents 74c53a7 + 12d77c0 commit b0a1d8c

File tree

1 file changed

+3
-3
lines changed
  • app/server/ruby/lib/sonicpi/lang

1 file changed

+3
-3
lines changed

app/server/ruby/lib/sonicpi/lang/core.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3669,11 +3669,11 @@ def use_random_source(noise_type, &block)
36693669
36703670
You can see the 'buckets' that the numbers between 0 and 1 fall into with the following code:
36713671
3672-
rand_type :white
3672+
use_random_source :white
36733673
puts 10000.times.collect { rand.round(1) }.tally.sort
3674-
rand_type :pink
3674+
use_random_source :pink
36753675
puts 10000.times.collect { rand.round(1) }.tally.sort
3676-
rand_type :perlin
3676+
use_random_source :perlin
36773677
puts 10000.times.collect { rand.round(1) }.tally.sort
36783678
36793679
",

0 commit comments

Comments
 (0)