Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • you can try random.shuffle Commented May 2, 2015 at 16:45
  • Well I should mention that it should have some order to it. If the desired matrix has n rows, then the sequence of rolls must be from -1, 0, ... , n-1 not including n-1. Commented May 2, 2015 at 17:43
  • can't you do this with a circular convolution? Commented May 2, 2015 at 18:00