random trials from book