I was going to say you should probably write (0,1) instead of [0,1]. But the support of the beta is [0,1] according to wikipedia. It is just you will be unlikely to ever generate an exact 0 or 1 via a simulation. (I figure you have other posts on here about censoring/truncation as well!)