Weapon skins, Can anyone help?

I got a couple of textures to use as skins for guns but i dont know how i would set up a way to make a system to get cases and earn a random skin for a random gun could anyone help me out with this??? Thanks! PlayCanvas | HTML5 Game Engine