11-03-2009 12:56 AM
Dear Sir,
How can i generate random generation of alphabets of length 3 in labview?
ex:adg,beg etc
Thanks in Advance
Regards,
Sai Chitra.
11-03-2009 02:27 AM
Hi chitrar,
Here is a way for caps only:
1) Use decimal to ASCII numbers for your letters
2) Generate a random number from 0-25
3) Add the result to the first letter (A) position which is 65
4) Repeat 3 times
5) Convert to U8 and then use Byte Array to String to get your string
Note if you want lower case also, change the 25 to 51 and then add 7 if the random number result is greater than 25.
steve
11-03-2009 09:23 AM
11-03-2009 09:28 AM