Csound Csound-dev Csound-tekno Search About

[Csnd] Random opcodes

Date2014-02-17 20:00
Frommskala@ansuz.sooke.bc.ca
Subject[Csnd] Random opcodes
What's the difference between the rand/randh/randi family of opcodes and
the random/randomh/randomi family of opcodes?  They have slightly
different syntax, but appear to serve identical purposes.  Is one
preferable to the other?
-- 
Matthew Skala
mskala@ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/

Date2014-02-17 20:05
FromPaul Batchelor
SubjectRe: [Csnd] Random opcodes
random* lets you specify specific max/min ranges.

rand* does values between 0 and 1

-P


On Mon, Feb 17, 2014 at 3:00 PM, <mskala@ansuz.sooke.bc.ca> wrote:
What's the difference between the rand/randh/randi family of opcodes and
the random/randomh/randomi family of opcodes?  They have slightly
different syntax, but appear to serve identical purposes.  Is one
preferable to the other?
--
Matthew Skala
mskala@ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/


Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2014-02-17 20:22
Frommskala@ansuz.sooke.bc.ca
SubjectRe: [Csnd] Random opcodes
On Mon, 17 Feb 2014, Paul Batchelor wrote:
> random* lets you specify specific max/min ranges.
>
> rand* does values between 0 and 1

The rand* opcodes also seem to allow adjusting the bounds using the
amplitude and offset arguments.  But that's what I meant by syntax
differences.  Are there any more substantive differences, for instance in
the PRNG algorithms used?

-- 
Matthew Skala
mskala@ansuz.sooke.bc.ca                 People before principles.
http://ansuz.sooke.bc.ca/

Date2014-02-17 20:45
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: random algorithms
AttachmentsNone  

Date2014-02-17 20:48
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Re: random algorithms
AttachmentsNone