[PD] vanilla solution for random float

IOhannes m zmölnig zmoelnig at iem.at
Thu Jun 2 09:12:12 CEST 2016


On 06/01/2016 05:08 AM, Alexandre Torres Porres wrote:
> apparently no one knows as it is not documented, but [expr] has a range
> random function, so you can do something like.
> 
> [expr random(0, 1000)/1000.0)]

hmm, how is this different from the following?

[random 1000]
|
[/ 1000]

more importantly, how does this use anything near the "full
floating-point resolution" requested by the OP? (e.g. this random
generator can never generate 0.1234)

dfsamra
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20160602/0a63a20c/attachment.sig>


More information about the Pd-list mailing list