Pascal's triangle/Puzzle: Difference between revisions
Content added Content deleted
(Add SystemVerilog implementation) |
m (→{{header|SystemVerilog}}: add explanation) |
||
Line 1,066: | Line 1,066: | ||
=={{header|SystemVerilog}}== |
=={{header|SystemVerilog}}== |
||
We can view this as a problem of generating a set of random numbers that satisfy the constraints. Because there is only one solution, the result isn't very random... |
|||
<lang SystemVerilog>program main; |
<lang SystemVerilog>program main; |
||
Line 1,110: | Line 1,111: | ||
[5][11][13][4][8] |
[5][11][13][4][8] |
||
</pre> |
</pre> |
||
=={{header|Tcl}}== |
=={{header|Tcl}}== |
||
using code from [[Reduced row echelon form#Tcl]] |
using code from [[Reduced row echelon form#Tcl]] |