On Tue, Jan 18, 2022 at 07:44:22PM +0900, Tetsuya Miwa wrote: > Hi all, > > I thought all the random number generators having range parameter in Csound return the number in closed range (a <= N <= b, [a,b]). > However, I started to feel less confident about it after checking the manual. > For example, the manual says rnd(x) returns a random number in the unipolar range 0 to x. > Is it [0,x] or [0,x) (semi-open)? > Not sure of your notation there, and one of the developers will have to give the definitive answer, but as far as I know 'rnd(10)' can include the exact output '10', not just "arbitrarily close, but never exactly...". However, ift is really random, it might be hard to tell! -- Pete -- 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