[Click] random

JS njeanseb at gmail.com
Tue Aug 7 07:14:34 EDT 2007


Hi everyone,
sorry to bother you again but I am still fighting to understand how the
random function works in Click...
I need to pick a random number between 0 and 1 and the only thing I have
found about random at this time is in the RED element where they are using
_random_value = (random() >> 5) & 0xFFFF;
I guess this is a bit operation but I don't know what number is coming out
of the random() function.
So if anyone knows how to generate a number between 0 and 1 it would help me
a  lot.
Regards
Jean-Sebastien


More information about the click mailing list