In the foundry chat box, type:

/roll 1dXminY

replacing X with your class hit die, and Y as the average value.

Or you can copy and paste one of the following examples:

/roll 1d6min4
/roll 1d8min5
/roll 1d10min6
/roll 1d12min7