New answers tagged

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 ...
lericr's user avatar
  • 24.5k
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: ...
dreeves's user avatar
  • 696
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 <...
Joshua Schrier's user avatar
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: ...
lericr's user avatar
  • 24.5k
0 votes

Appending Random Number to Existing List

Thank you for your comments;using the random number seed.It was simple matter,which I now realize. ...
Soon's user avatar
  • 359

Top 50 recent answers are included