simple sim with function handle probability function