01-31-2018 01:34 PM - edited 01-31-2018 01:44 PM
Hello,
I'm very new to LabVIEW, and I'm looking for a way to create a program which randomly assigns students a letter grade (A, A-, B+, etc). It was suggested to me that I start by creating a random number generator as shown. Using this, I am able to generate a random number between 1 and 10. Is there a way to take the number that is generated and convert it to the corresponding grade? For example, convert 1 to A, 2 to A-, etc. Alternatively, is there a better way to approach this task?
Thanks very much for the help. As I said, I'm new to LabVIEW and still trying to figure things out.
Solved! Go to Solution.
01-31-2018 02:02 PM
Use that number as an index into an array which contain your various grades.
01-31-2018 02:12 PM
Thanks very much! I figured the solution had something to do with creating an array of the possible grades, but I wasn't quite sure how to go about using that to get a single grade from a randomly generated number. This is exactly what I needed. I really appreciate it!
01-31-2018 10:49 PM
One of our missions here is to help LabVIEW novices grow. 🙂