Re: rand for tiny-fu | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Rob Antonishen wrote:
> is there a floating point rand function for tiny-fu?
>
> (rand 1.0) returns 0 and (rand x) where x<1.0 returns a modulo divide
> by zero error
The rand and random functions only return exact (integer) values.
(rand . modulus)
Computes a random number from 0 to modulus-1. If modulus is not specified, it
returns a value in the range of 0 to 2^31-1
(random modulus)
Computes a random number from 0 to modulus-1. Unlike the rand function,
modulus is not optional.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172 |"Same thing we always do, Pinkutus:
| Try to assimilate the world!"
#include <disclaimer/favourite> | -Pinkutus & the Borg
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/script-fu/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/script-fu/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:script-fu-digest@xxxxxxxxxxxxxxx
mailto:script-fu-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
script-fu-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
[Gimp Developers] [Gimp Users] [Photos] [Yosemite News] [Yosemite Photos] [Epson Inkjet] [Scanner] [Gimp's Home] [GIMP Books] [Steve's Art]
![]() |
![]() |