To download NI software, including the products shown below, visit ni.com/downloads.
Overview
When provided with an array of strings and a corresponding array of numerics (which designates the probability that the string at the same index of the paired array will be "selected"), this VI returns a randomized array of the elements given.
Description
This VI returns a randomized array of the elements given. It does this by normalizing the probability values provided and comparing them to a random value between 0 and 1.
Requirements
Steps to Implement or Execute Code
Additional Information or References
Front Panel
Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.