1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-05 14:27:45 +02:00

add parameters

This commit is contained in:
Justin Lin
2019-08-11 11:37:24 +08:00
parent 99e68cfb31
commit a5039c8f5a

View File

@@ -1 +1,2 @@
function rand() = rands(0, 1, 1)[0];
function rand(min_value = 0, max_value = 1, seed_value) =
is_undef(seed_value) ? rands(min_value, max_value , 1)[0] : rands(min_value, max_value , 1, seed_value)[0];