Description Usage Arguments Value Examples
generate_board_mat
1 | generate_board_mat(n = 5, p = 0.25)
|
n |
a positive integer denote the size of the board |
p |
a number between 0 and 1 that denotes the fraction of the 'n^2' squares are blocked |
matrix with random (0, 1) (n^2 size with n^2 * p numbers of blocked(1), rest (0))
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.