Example Code

Lottery Numbers with LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview

This example vi chooses six random numbers from a range of 1-43 (the lottery numbers) and outputs them to the front panel.

 

Description

This example vi chooses six random numbers from a range of 1-43 (the lottery numbers) and outputs them to the front panel. There are many other ways to choose random numbers in LabVIEW and this is one of them. Enjoy!!


Requirements:

  • LabVIEW Full Development System 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI and observe the LOTTERY NUMBERS

 

 

Additional Information or References

 

VI Snippet

1.png

 

 

**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.