Make a IV which genreates a number between 1-6 and runs 10 times and displays the values in an array dicicator
1) A loop which lopps 10 times
2) One random number generator
3) Arthimetic primitive (5) icon andexpression node
4) Array privmitive
Now i tried using a random number generator to generator a number between 1-6 but the random number generator only generates numbers between 0-1. what should i do?
Is it that time of the year again where all the homework questions come in? Guess so.
So the random number generator give you the range of 0-1. But you need 1-6. Well, have you considered some basic math? Like multiplying by a certain number and adding a certain number?
If this were facebook I'd 'like' you're comment smercurio_fc.
It is sad to see homework end up on forums. Not simply because parents pay large sums of their hard-earned income to put their children into college or University, but because it suggests the posters are more interested in having the end-product in thier hands rather than enjoying the process of discovery.
Any good engineering, science or programming student would look at the problem, think about how to solve it, then play with some code until the solution appears. A very rewarding process! .. a far more rewarding process than job-hunting after graduation.
I am starting to peice it together little by little so far i have everything except for the array that lists the # for each time the program is run.
Try www.labviewhomework.com for the best way to approach your LabVIEW homework.
I would suggest going through labview basics, break the problem down into each part, work out how do each bit. Once you have all the peices of the jigsaw, put them together.
for example : - learn how a FOR loop works and how to control it then set it up to how you have been asked too
the problem you have is not particually hard hence sme of the previous comments but its to teach you how to approach a labview problem