10-21-2025 10:39 AM
Thank you for your feedback! I get that you know this stuff well,but I'm new to LabVIEW and just trying to understant how to make things work. Instead of sarcasm about Las Vegas, maybe just explain and show how to fix it.That would actually help someone who's trying to learn.
10-21-2025 12:25 PM - edited 10-21-2025 12:26 PM
Hi magnetism/ruzhana,
@ruzhana wrote:
Instead of sarcasm about Las Vegas, maybe just explain and show how to fix it.That would actually help someone who's trying to learn.
Explanation: rounding follows certain rules. You have selected to "round to nearest", which has effects for values near the edges of the allowed range. (There also is the additional effect of bankers rounding.)
For "better randomness" you should use a different rounding mode (like round down) as this will ensure the same probability for ALL allowed values.
(You should have learned this in your math lessons, when the teacher talks about statistics...)
@ruzhana wrote:
Thank you for your feedback! I get that you know this stuff well,but I'm new to LabVIEW and just trying to understant how to make things work.
Did you notice those Training resources offered in the header of the LabVIEW board? As you are new to LabVIEW you really should take them!
Generic advice: good code should contain comments!
Your images don't show any attempts to document your code.You don't even use the sublabels of structures...
10-21-2025 12:46 PM - edited 10-21-2025 01:01 PM
If you want number 1..100, you round to inf. If you round to -inf you get number 0..99. If you round to nearest, you get 0..100 (101 different values!) but 0 and 100 will share a probability.
Try to show it graphically and it becomes obvious.
This is all moot because we don't even know if you need to generate random numbers, right!
10-23-2025 01:37 PM
Create a file where you need to write n integers. From the file of integers,
form an array by writing only those values that are multiples of 3 and are located before the
minimum element of the file.
I need to change the flowchart to output numbers that are multiples of 3 in a new array.I only get the max and min values among these numbers. I need it to be without a Flat Sequence Structure and the elements inside it. I tried to do it using a for loop, but it didn't work. Please help me.
10-23-2025 02:30 PM
Hi Miki,
@17372Mikiiii wrote:
I need to change the flowchart to output numbers that are multiples of 3 in a new array.I only get the max and min values among these numbers. I need it to be without a Flat Sequence Structure and the elements inside it. I tried to do it using a for loop, but it didn't work. Please help me.
When do you start to talk with your co-students so you could solve your homework together???