There are different possibilities.
Chronograph App:
Build-In delays:
Temporary Variables App:
(also possible with the build in logic cards)
Didn’t tested my self yet, but I guess it’s also possible to calculate a random number with a seperate flow, store this number into a number variable und use this variable with the sunset/sunrise trigger card of the Sun Events App: