added random resource to my script