Compile the files into your osvvm library in the following order...
SortListPkg_int.vhd
RandomBasePkg.vhd
RandomPkg.vhd
MessagePkg.vhd
NamePkg.vhd
CoveragePkg.vhd

In your code, add the lines
    library osvvm;
    use osvvm.RandomPkg.all;
    use osvvm.CoveragePkg.all;

useful guide at Doulos: https://www.doulos.com/knowhow/vhdl_designers_guide/OSVVM/