| Perhaps one should note that values in csound are floating not integers. If needed for an integer use it is fixed so accuracy is less certain.
Sent from TypeApp
On Jan 6, 2021, 20:55, at 20:55, jdm771 wrote:
>Hi,
>
>I have been trying to use "seed" for reproducibility. Examples 1, 2,
>and 3 below all provide different results from each other. That is what
>I would expect.
>
>However, Examples 4 and 5 yield the same results as Example 2. That is
>not what I expect. I would expect Examples 4 and 5 to also each be
>different.
>
>I would be grateful is someone would assist me on understanding this.
>
>Thank you,
>
>John
>
>
>
>
>-odac
>
>
>
>sr = 48000
>ksmps = 1
>nchnls = 1
>0dbfs = 1
>
>seed 3348880584 ; <-- Replace this with the examples below.
>; Example 1: 854106567
>; Example 2: 4080063411
>; Example 3: 1308476648
>; Example 4: 3591223209 <-- Same as Example 2!
>; Example 5: 3348880584 <-- Same as Example 2!
>
>instr 10
> itimes = 20
> icnt = 0
> loop:
> inum random 0, 1000
> print inum
> loop_lt icnt, 1, itimes, loop
>endin
>
>schedule(10, 0, 10)
>
>
>
>
>f0 10
>
>
>
>
>Csound mailing list
>Csound@listserv.heanet.ie
>https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>Send bugs reports to
> https://github.com/csound/csound/issues
>Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |