[Csnd] exprand range
Date | 2008-02-17 16:26 |
From | Jean-Pierre Lemoine |
Subject | [Csnd] exprand range |
Hi All, From the manual /krange/ -- the range of the random numbers (0 - /krange/). Outputs only positive numbers. instr 1 k1 exprand 1 printk 1, k1 endin The output from csound 5.07 in WIN i 1 time 0.00036: 0.20491 i 1 time 1.00027: 0.02612 i 1 time 2.00018: 0.10568 i 1 time 3.00009: 2.33116 i 1 time 4.00000: 0.88281 i 1 time 5.00027: 0.58793 i 1 time 6.00018: 1.51559 i 1 time 7.00009: 0.01441 i 1 time 8.00000: 0.32860 i 1 time 9.00027: 0.80819 Some values are not in the expected range. ?? Thanks jp |
Date | 2008-02-17 17:37 |
From | Andres Cabrera |
Subject | [Csnd] Re: exprand range |
Hi, You're right, I get the same results for Linux. Can someone with knowledge of the code confirm what the docs should say? Cheers, Andrés El dom, 17-02-2008 a las 17:26 +0100, Jean-Pierre Lemoine escribió: > Hi All, > > From the manual > /krange/ -- the range of the random numbers (0 - /krange/). Outputs only > positive numbers. > > instr 1 > k1 exprand 1 > printk 1, k1 > endin > > The output from csound 5.07 in WIN > i 1 time 0.00036: 0.20491 > i 1 time 1.00027: 0.02612 > i 1 time 2.00018: 0.10568 > i 1 time 3.00009: 2.33116 > i 1 time 4.00000: 0.88281 > i 1 time 5.00027: 0.58793 > i 1 time 6.00018: 1.51559 > i 1 time 7.00009: 0.01441 > i 1 time 8.00000: 0.32860 > i 1 time 9.00027: 0.80819 > > Some values are not in the expected range. ?? > Thanks > jp > > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2008-02-17 18:21 |
From | root |
Subject | [Csnd] Re: Re: exprand range |
I think that this is not the maximum but the expected mean. I do not have my copy of Dodge to hand, but can check during teh week if someone does not do it first ==John ff |