The random number generators in the Mathematics>>Probability & Statistics>>Probability palette:
and
have NO mandatory parameters.
For some, this is understandable (seed value, reset, number of samples) but for function parameters not to be mandaroty is a bit odd to say the least... But that would be the topic of another suggestion.
The current suggestion is to replace the default sample number to 1
Caption: The sample number (called samples above) defaults to 128.
The practical reason is that I oftentime find myself needing a single value drawn from a random distribution (as much as possible, I try to generate large arrays in one go, but that's not always possible). and I'd appreciate not to have to clutter my diagram with an extra constant (and the associated wire).
Of course, I could go ahead and set the default value of this parameter to 1 in each of the vi.lib VIs, but I would have to do that for each new version.
I can't think of a good reason why people would want 128 samples rather than any other number.
Now there is still the annoying fact that the VIs will nonetheless output a single element array, but I can go around this problem with a small intermediate VI (, for discrete randome variables) which takes no space on the diagram.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.