X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fseeded_rand.rb;h=c51e248f487a39bd03fdf567735e718e8dccb618;hp=0120b87b47eee871169681f12e8404188c637beb;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/seeded_rand.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/seeded_rand.rb index 0120b87b4..c51e248f4 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/seeded_rand.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/seeded_rand.rb @@ -6,7 +6,15 @@ Puppet::Parser::Functions.newfunction( :arity => 2, :type => :rvalue, :doc => <<-DOC - Usage: `seeded_rand(MAX, SEED)`. MAX must be a positive integer; SEED is any string. + @summary + Generates a random whole number greater than or equal to 0 and less than MAX, using the value of SEED for repeatable randomness. + + @return + random number greater than or equal to 0 and less than MAX + + @example **Usage:** + seeded_rand(MAX, SEED). + MAX must be a positive integer; SEED is any string. Generates a random whole number greater than or equal to 0 and less than MAX, using the value of SEED for repeatable randomness. If SEED