1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00

add seed parameter

This commit is contained in:
Justin Lin 2020-08-27 15:16:07 +08:00
parent 0b115df546
commit 8b6eccf62b

View File

@ -4,11 +4,12 @@ use <experimental/mz_get.scad>;
use <util/sort.scad>; use <util/sort.scad>;
use <util/dedup.scad>; use <util/dedup.scad>;
function mz_hamiltonian(rows, columns, start) = function mz_hamiltonian(rows, columns, start, seed) =
let( let(
blocks = mz_blocks( blocks = mz_blocks(
[1, 1], [1, 1],
rows, columns rows, columns,
seed = seed
), ),
all = concat( all = concat(
[ [