polydat 0.1.0

Polydat — generation kernel for deterministic variate generation in nb-rs (formerly nbrs-variates)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// multi_output.gk — Multi-output node destructuring.
//
// mixed_radix produces multiple outputs from a single input.
// The DSL destructures them into named bindings.
//
// Expected events:
//   BindingResolved for each destructured target

input cycle: u64
(region, store, tx) := mixed_radix(cycle, 50, 200, 0)
region_id := mod(hash(region), 10000)
store_id := mod(hash(interleave(region, store)), 100000)