From 12d77c00920919674aefd61e9044b0cb7938f179 Mon Sep 17 00:00:00 2001 From: Florian Hollerweger Date: Wed, 6 Nov 2024 23:52:11 +0100 Subject: [PATCH] Replace rand_type with use_random_source in lang reference entry for the latter --- app/server/ruby/lib/sonicpi/lang/core.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/server/ruby/lib/sonicpi/lang/core.rb b/app/server/ruby/lib/sonicpi/lang/core.rb index fbc98a421c..64507f208e 100644 --- a/app/server/ruby/lib/sonicpi/lang/core.rb +++ b/app/server/ruby/lib/sonicpi/lang/core.rb @@ -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 ",