Random value remain fixed

part of a script of mine is like this:

   - service: yeelight.start_flow
     data:
       entity_id: light.room
       count: 0
     data_template:
       transitions:
         - RGBTransition: ['{{ (range(0, 255)|random) }}', '{{ (range(0, 255)|random) }}', '{{ (range(0, 255)|random) }}', 10000, 255]
         - RGBTransition: ['{{ (range(0, 255)|random) }}', '{{ (range(0, 255)|random) }}', '{{ (range(0, 255)|random) }}', 10000, 255]

but once it starts and choose the two sets of random value, those remain fixed for all the duration of the loop. I need to clear this “memory” at every loop cycle to obtain a true random colors loop, how can i achieve this?