Pseudocode Task

Hint: This pseudocode simulates a dice roll, displaying the result and a congratulatory message if the roll is a 6.

PROGRAM DiceRollSimulation
    PRINT "Welcome to Dice Roller!"
    dice_value = RANDOM_INTEGER(1, 6) // Inclusive range
    PRINT "Rolling the dice..."
    SLEEP(2) // Pause for 2 seconds
    PRINT "You rolled a: ", dice_value
    IF dice_value == 6: // Use == for comparison
        PRINT "Congratulations! You rolled a 6!"
    ELSE:
        PRINT "Better luck next time!"
    END IF
    PRINT "Simulation finished."
END PROGRAM