6
votes
Incrementing a random element of an array repeatedly
I don't know how to answer just in the comments, so here's a non-solution reply to your question.
Is there any principle you can articulate by which one could make one's code more robust to this kind ...
5
votes
Incrementing a random element of an array repeatedly
I suspect this is a subtle interaction between the HoldFirst attribute of Increment and the HoldAll attribute of While.
Possible Fix? Adding a semicolon inside the <...
3
votes
Incrementing a random element of an array repeatedly
Turns out we have a bonafide Wolfram Language bug here. With help from you all, I've pared it down to this:
...
1
vote
Accepted
Appending Random Number to Existing List
If you want to just hide/reveal parts of a randomly generated list, you can do this:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
random × 881probability-or-statistics × 140
list-manipulation × 98
distributions × 97
matrix × 67
plotting × 65
performance-tuning × 54
simulation × 50
graphics × 36
functions × 31
graphs-and-networks × 30
regions × 28
stochastic-calculus × 28
differential-equations × 27
graphics3d × 26
function-construction × 23
programming × 21
generative-art × 21
random-process × 21
numerical-integration × 19
manipulate × 19
version-7 × 19
geometry × 18
bugs × 17
algorithm × 17