LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Quasi random number

How do I create Quasi random number using LabView ?

Is there any module for Labview ?


Somebody help!

thanks,

0 Kudos
Message 1 of 7
(3,712 Views)
Can you not use the random number generator from the numeric palette -- the icon that looks like a couple of dice?
0 Kudos
Message 2 of 7
(3,687 Views)
For the sake of being redundant and providing a visual Smiley Wink
 
 
It's found in the Numeric palette


Message Edited by Steve.Briggs on 11-21-2007 09:55 AM
0 Kudos
Message 3 of 7
(3,678 Views)
Hi karthik,

apart from using built-in random number generator you can also use this. It will work on PC too.
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(3,661 Views)

Well, a single quasi random number is not really different from a (pseudo random number), the difference arises if you have a sequence of such numbers.

http://mathworld.wolfram.com/QuasirandomSequence.html

http://en.wikipedia.org/wiki/Low-discrepancy_sequence

(http://www.google.com/search?q=quasi+random&rls=com.microsoft:en-us:IE-SearchBox&ie=UTF-8&oe=UTF-8&s...)

I am not aware if LabVIEW has such a beast.

The web has many code examples, so all you need to do is wrap it into a DLL. 🙂

http://www.google.com/search?q=quasi+random+code&rls=com.microsoft:en-us:IE-SearchBox&ie=UTF-8&oe=UT...



Message Edited by altenbach on 11-21-2007 08:55 AM
0 Kudos
Message 5 of 7
(3,650 Views)

Or you can just do this:

Here's the equivalent LabVIEW code:

Of course, if you only want a quasi-random number, you can't use this as it's truly random.


___________________
Try to take over the world!
Message 6 of 7
(3,626 Views)
Mathscript has two functions that may help:
Richtmeyer and Halton

These are not currently exposed in the LabVIEW palettes


-Jim
Message 7 of 7
(3,603 Views)