Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Out of curiosity: How are serial numbers generated? Hints, Algorithms? [closed]

I wondering about how serial number generators and validator work. My aim would be to generate a serial number with five parts consisting of numbers and letters only.

I enjoy coding as a hobby and would not call myself a professional programmer. However, I am very interested in how those interesting functions work technically to broaden my mind.

Any hints, experiences or written algorithms are appreciated.

like image 906
Simon Avatar asked Apr 03 '09 19:04

Simon


People also ask

How are serial numbers created?

Typically serial numbers are created sequentially, and have segments recording different types of information, such as where a product was created, the date of manufacture, and any other data deemed useful within the product's lifecycle, from assembly and distribution, right through to repair and replacement.

How do serial numbers work?

A serial number (SN) is a number assigned to each individual product in order to distinguish that product from all others. The serial number is sometimes used only for warranty control and sometimes used for both warranty control and for version control.

Are serial numbers random?

From credit card numbers to codes on medication, serial numbers need to be random. Serial numbers are unique codes that are normally chosen randomly but not re-used.

Is Serial Number case sensitive?

Serial number rules can be created to restrict serial numbers to alphabetic only, numeric only, alphanumeric, or alphanumeric including special characters. Rules are uniquely identified by rule names. The rule names are not case-sensitive.


1 Answers

Brandon Staggs wrote a good article on Implementing a Partial Serial Number Verification System. The examples are written in Delphi, but could be converted to other languages.

like image 50
stukelly Avatar answered Sep 18 '22 14:09

stukelly