[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] rand question





Thanks Josh

I guess I've been drinking too much tea.

I seem to remember having programmed in a language where it
was inclusive. But maybe not. Bit confusing.


See the SImpleNumber helpfile:

rand

Random number from zero up to the receiver, exclusive.

rand2

Random number from -this to +this.

rand excludes the receiver, rand2 includes it.