% $Id: RandomWithExceptions.oz,v 1.1 2010/04/02 18:48:02 leavens Exp leavens $ declare %% This shows that combining exception handling with threads loses determinism fun {RandomWithExceptions} local X in thread try X=1 catch _ then skip end end thread try X=0 catch _ then skip end end X end end