If all you are asking about is if it's possible to obtain a random sample from an arbitrary discrete distribution - the answer is yes and it is quite easy to do if you have access to a random sample from a uniform distribution. However the following confused me because .34 isn't one of your specified outcomes or a probability you specified. I'm guessing it's unrelated to your original example but I'm still a little confused about what you're asking here.