Design a Labview program that will accomplish the following: Generate random int
ID: 2266331 • Letter: D
Question
Design a Labview program that will accomplish the following: Generate random integer numbers between 0 and 15. Iterate this random process until the random number equals “7”(i,e stop the program when the random # - 7) Display on the front panel: (1) the actual random number and (2) the iteration number. Include a time delay so the user can watch the value update as the program executes.Please send the LabView File at: yeyojhs0525@gmail.com
Thank You In Advance.
Design a Labview program that will accomplish the following: Generate random integer numbers between 0 and 15. Iterate this random process until the random number equals “7”(i,e stop the program when the random # - 7) Display on the front panel: (1) the actual random number and (2) the iteration number. Include a time delay so the user can watch the value update as the program executes.
Please send the LabView File at: yeyojhs0525@gmail.com
Thank You In Advance.
Generate random integer numbers between 0 and 15. Iterate this random process until the random number equals “7”(i,e stop the program when the random # - 7) Display on the front panel: (1) the actual random number and (2) the iteration number. Include a time delay so the user can watch the value update as the program executes.
Please send the LabView File at: yeyojhs0525@gmail.com
Thank You In Advance.
Explanation / Answer
#include <stdio.h>
#include <stdlib.h>
int main() {
int c, n;
printf("Random numbers is in search..... ");
int random_x;
srand ( time(NULL) );
random_x = rand() % 100;
If( random_x ==-7)
cout<<" Random X = "<<random_x;
else
return 0;
}