Re: code-block

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt Lewis wrote:

> function rand_not( integer x )
>   integer r
>   r = rand( max-1 )
>   if r >= x then r += 1 end if
>   return r
> end function
>
 Why didn't I think of that--excellent fast code.

-- Mike Nelson

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu