Raith have been drawn with Ayr at Somerset Park for the second round of the ramsdens cup.
The other ties are:
Hamilton Academical v Partick Thistle
Falkirk v Dundee
East Fife v Elgin City
Livingston v Stirling Albion
Annan Athletic v Peterhead
Forfar Athletic v Morton
Dumbarton v Berwick Rangers