The problem of fixation time presentation

I am a novice and not yet proficient in using Psychopy.。I want the fixation to be randomly presented within 500ms~1000ms, and I know that the existing time in the sequence can be randomly presented through the Sheffle function and sequence creation,but what code should I use to achieve complete randomness within this range, rather than relying on individual time in the sequence?

Begin Routine

fixTime = 0.5 + 0.5 * random()

Thank you for your reply that solved my problem!