Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
11 votes
1 answer
2k views

Balanced Random Assignment in Python

It has been a very long time since I've used Python. What I'm looking for: I would like to create a 6-by-6 random matrix where each component is either 1 or 2, so that there are 18 ones and 18 twos. ...
Clarinetist's user avatar