Skip to content

Commit

Permalink
Replace rand_type with use_random_source in lang reference entry for …
Browse files Browse the repository at this point in the history
…the latter
  • Loading branch information
Florian Hollerweger committed Nov 6, 2024
1 parent 74c53a7 commit 12d77c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/server/ruby/lib/sonicpi/lang/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3669,11 +3669,11 @@ def use_random_source(noise_type, &block)
You can see the 'buckets' that the numbers between 0 and 1 fall into with the following code:
rand_type :white
use_random_source :white
puts 10000.times.collect { rand.round(1) }.tally.sort
rand_type :pink
use_random_source :pink
puts 10000.times.collect { rand.round(1) }.tally.sort
rand_type :perlin
use_random_source :perlin
puts 10000.times.collect { rand.round(1) }.tally.sort
",
Expand Down

0 comments on commit 12d77c0

Please sign in to comment.