[FFmpeg-trac] #10763(documentation:new): Improve documentation for random() expression
FFmpeg
trac at avcodec.org
Thu Dec 28 10:58:53 EET 2023
#10763: Improve documentation for random() expression
-------------------------------------+-------------------------------------
Reporter: Michael | Type:
Koch | enhancement
Status: new | Priority: normal
Component: | Version: git-
documentation | master
Keywords: seed | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Please add this to the documentation of the random() expression:
random(0) uses the variable 0 as a seed value. The memory of variable 0 is
a union of int and double. When used by the expressions ld() and st(),
it's double. When used by random(), then it's int. Important thing to
remember: If you want to set the random generator to a seed value much
different from 0, then you have to use rather big numbers, for example
st(0, 2^41).
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10763>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list