[FFmpeg-user] Question about random() expression

Carl Zwanzig cpz at tuunq.com
Thu Dec 28 04:25:37 EET 2023


On 12/27/2023 3:54 PM, Jim DeLaHunt wrote:
> The documentation says, "x is the index of the internal variable which will 
> be used to save the seed/state." 
> (https://ffmpeg.org/ffmpeg-all.html#Expression-Evaluation). I don't know 
> what it means by "index of the internal variable", and I don't know what 
> "save" means. In a function named random(), I expect the parameter to be 
> used as a seed. I guess this is one of the places where one has to read the 
> source code.

I also suspect that "read the source" is the answer, but also recall from 
decades past that some systems (e.g. BASIC) needed a "randomize" statement 
in order to get off their usual starting point.

Off to the source :).

z!


More information about the ffmpeg-user mailing list