Switch random resource generation to enum