Not with a single combinator but with a few, you need a constant combinator to set some signals, and then a Selector to pick a random value and then an arithmetic combinator to sanitise them into the signal value you want...Freddy404 wrote: βSun Nov 12, 2023 2:16 pmSomething else I realized would be awesome to have in a single combinator: random numbers, possibly with a range.
(Ab)using the random signal selector combinator needs signal input (which limits the range/resolution to the total number of different signals), and possibly folding the different possible signals back into one (if that can't be implicitly handled by whatever circuit this flows to).
For example:to generate a random 32 bit number on signal 'dot', we could have a pair of constant combinator and selector for each byte (assuming the total number of signal types eclipses 256). Then, a single arithmetic combinator each * 1 -> dot to fold the signals together.Now a footprint of 14 Tiles is not excessive, but if we're simplifying/shrinking stuff down, this seems like a good candidate.
Constant Combinator with 0-9 and A-F signals representing 0-15
for 32bit you'd need 8 Selectors each picking a random number
(You might need a special case for handling the negative)
Multiply each Hex digit by 16^n depending on where in the number it appears and output it as a single signal type to combine them
I kind of think this is intended behaviour, though I'm not sure I like adding randomness to circuit networks >_< I like my factories to be determinisitc