answersLogoWhite

0

You need to store the last number used somewhere - for example, in a variable that doesn't disappear after closing the function. Then, every time the function "Serial Number" is invoked, simply add one to this number, and return the new number.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

How are free credit card numbers generated?

Free credit card numbers are generated automatically with computer software that generate numbers that will comply with the MOD 10 algorithm or also knows as the Luhn algorithm.


What type of number generator is used to generate social insurance numbers in Canada?

The Luhn algorithm is used.


How does the lava lamp RNG algorithm work to generate random numbers?

The lava lamp RNG algorithm works by capturing the unpredictable motion of wax blobs in a lava lamp and converting it into random numbers. The algorithm takes images of the lava lamp at different intervals and uses the patterns and movements of the blobs to generate random values. This process is repeated continuously to ensure a stream of random numbers.


How do you describe an algorithm with rational numbers?

Describe an algorithm for dividing rational numbers.


Design a algorithm to generate all prime numbers within the limits l1 and l2?

Algorithm: to generate all prime numbers between the limits l1 and l2.Input: l1 and l2Output: Prime numbers between l1 and l2Method:for (n=l1 to l2 in steps of 1 do)prime=truefor (i=2 to n/2 in steps of 1 do)if (n % i =0)prime = falsebreakend_ifend_forif (prime = true)Display 'Prime number is =', nend_for


Which modifications are necessary to generate dda dotted line code from dda algorithm?

What is the advantage of bresenham algorithm over dda algorithm?Read more: What_is_the_advantage_of_bresenham_algorithm_over_dda_algorithm


Which function is used to randomize number in Excel?

There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.There is a RAND function which can generate random numbers. The RANDBETWEEN function can generate numbers between a lower and upper limit.


What is an algorithm for multiplying rational numbers?

The algorithm is A/B * C/D = AB/CD.


How would generate a random sample?

Each item in the population has an equal chance to be chosen. Usually a computer algorithm is used to generate a set of random numbers (most spreadsheet . Then the items are chosen using the set of random numbers, either as they come off the assembly line or if they are serialized, you can just go pick those items.


All even numbers from 2-100 using algorithm?

102


79901425 can you find if that is a control number?

No. You must know what algorithm is used to generate the control.


An algorithm for dividing rational numbers?

what is 5838945987. 54564894156=