How do you add a refresh button to
Manipulate[RandomVariate[BernoulliDistribution[p], 10], {p, 0, 1}]
that will re-evaluate RandomVariate[BernoulliDistribution[p], 10]
when clicked?
The following works :
Manipulate[
Typeset`update$$;
RandomVariate[BernoulliDistribution[p], 10], {p, 0, 1},
AppearanceElements -> "UpdateButton"]
To update press the button "U" at the top-right.
Of course, if you move the cursor it updates too.
Manipulate[
r;
RandomVariate[BernoulliDistribution[p], 10],
{p, 0, 1}, {{r, True}, None},
Button["refresh", r = ! r]]