I want to make a random roll call device to show different pictures or contents in the same position

I want to make a random roll call device to show different pictures or contents in the same position.
One content will be added every time. What I need is to refresh the output every time

    with col2:
        placeholder = st.empty()
        with placeholder.container():
            # Randomly choose a non repeating name
            st.image('./imgs/name.gif')
        time.sleep(1)
        placeholder = st.empty()
        # make a random name
        getId = getRand(data, colname)
        # show the random name
        st.write(getId)