Adding parameter for math.random()
Using math expression with Molang for animations has been the most amazing addition on Bedrock Edition. Almost all math expressions are useful in lots of ways, math.random(), however, lack some controlable parameter to allow user to fully ultilize it.
My sugestion is really simple, adding some parameters for math.random(). Here's some of the examples that I've come up:
math.random('start number', 'end number', 'period', 'mode')
The start and end number is quite self-explantory, the addition 'period' is simply allow math.random changing the output after that period. So something like math.random(0,1,2) will output any number ranging from 0 to 1 only then after 2 seconds, it will re-ouput again.
The 'mode' is another parameter allows the user to set the type of randomness. It shall have 3 modes: 'Continuous', 'Janky', 'Step'.
If the users use 'Continous', then the graph of math.random over time should be a random but smooth curve.
'Janky' is just what we have at the moment.
'Step' is basically like janky, but step has a wait period before pumps out a new output.
Please sign in to leave a comment.