How can I generate multiple unique random numbers?

Hello

I am trying to generate multiple random numbers between a given set of numbers (1-52) and do not have the same number generated twice within this group. I can compare the numbers of last and next with the function to compare, but how would I go about comparison of all numbers generated without using a huge list of shift registers...

Any help/ideas are welcome and appreciated.

Jason

Solved my problem. IM passing the random number through a registry to offset to each case and build a table every time. I then searches the table for the new random number. If the number is not found I get a value of-1, another thing is an index value of 0-everything. If a comparator greater than (-1) indicates that the same number is in the table and then I can raise this matter until the same number is not found.

Kind regards

Jason

Tags: NI Software

Similar Questions

Maybe you are looking for

  • difference of phase for LabView

    Hi guys,. I need help in this program I am writing. I'm trying to calculate the difference in phase between two different simulated sinusoids. I searched online and found out that I could do that using retrieves your unique information and subtractin

  • When I try to update windows I get this error «Windows Update error 80072efe»

    Hello I installed 2 days ago to my new PC windows 7. After the installation is complete, I tried to update windows for the first time and every time I get this error: «Windows Update error 80072efe» I google the error and I saw that a lot of people h

  • Startup problem Acer e1 linux 510 model

    I bought acer aspire model E1 510 with linux preinstall. I want to install windows 7 or windows 8 inside. But he has only UEFI boot mode option in the bios. (no mode legecy). I can't start fron dvd rom

  • I need some drivers for amd radeon hd 7650 m

    HelloW, my English is not very good, but I try to expose my problem. I have laptop HP 4540 s with amd radeon hd 7650 m and Windows 7 Ultimete and I cannot find the drivers for this video card. This adapter does not work. What should I do? Thank you!

  • 506th Cisco multiple external IP addresses?

    Hello Is it possible to define several public addresses on the external interface of a Cisco Pix 506th? The old firewall would take requests in ony four IP addresses, and then we had a NAT that would direct traffic. It's a bit like DMZ a poor man. No