private static void playres(Resource res) {
	Collection<Resource.Audio> clips = res.layers(Resource.audio);
	int s = (int)(Math.random() * clips.size());
	Resource.Audio clip = null;
	for(Resource.Audio cp : clips) {
	    clip = cp;
	    if(--s < 0)
		break;
	}
	play(clip.clip);
    }