[Csnd] rand and repetitions
Date | 2012-12-13 06:04 |
From | Alex Weiss |
Subject | [Csnd] rand and repetitions |
Hi list Does anybody know after how many samples rand repeats? I seem to be getting very consistent loops of about 65,000 samples length. Am I right in assuming that rand repeats after 65,536 samples? If so, are there other random number generators with a longer period?
Thanks, Alex
|
Date | 2012-12-13 07:42 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] rand and repetitions |
Perhaps rnd31 ? Oeyvind 2012/12/13 Alex Weiss <alexweiss86@gmail.com> Hi list -- Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://flyndresang.no/ http://www.partikkelaudio.com/ http://soundcloud.com/brandtsegg http://soundcloud.com/t-emp |
Date | 2012-12-13 09:44 |
From | joachim heintz |
Subject | Re: [Csnd] rand and repetitions |
yes. and there is also an optional parameter in rand. the manual says: "isel (optional, default=0) -- if zero, a 16-bit number is generated. If non-zero, a 31-bit random number is generated. Default is 0." j Am 13.12.2012 08:42, schrieb Oeyvind Brandtsegg: > Perhaps rnd31 ? > Oeyvind > > > 2012/12/13 Alex Weiss |
Date | 2012-12-13 20:28 |
From | Alex Weiss |
Subject | Re: [Csnd] rand and repetitions |
Could have sworn I read the manual... Oh well, another case of RTFM. Thanks, Joachim and Oeyvind! Out of curiosity: why is it 31 instead of 32 bits? Alex On Dec 13, 2012 1:44 AM, "joachim heintz" <jh@joachimheintz.de> wrote:
yes. and there is also an optional parameter in rand. the manual says: |
Date | 2012-12-13 20:36 |
From | Oeyvind Brandtsegg |
Subject | Re: [Csnd] rand and repetitions |
I never actually thought of asking, good question :-) Oeyvind 2012/12/13 Alex Weiss <alexweiss86@gmail.com>
-- Oeyvind Brandtsegg Professor of Music Technology NTNU 7491 Trondheim Norway Cell: +47 92 203 205 http://flyndresang.no/ http://www.partikkelaudio.com/ http://soundcloud.com/brandtsegg http://soundcloud.com/t-emp |