Click here to Skip to main content
15,919,358 members
Home / Discussions / C#
   

C#

 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:10
Rocky#30-Jun-08 21:10 
AnswerRe: Query about generating random but unique keys of 6 digits? Pin
N a v a n e e t h30-Jun-08 21:05
N a v a n e e t h30-Jun-08 21:05 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:15
Rocky#30-Jun-08 21:15 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
N a v a n e e t h30-Jun-08 21:18
N a v a n e e t h30-Jun-08 21:18 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#30-Jun-08 21:36
Rocky#30-Jun-08 21:36 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
leppie1-Jul-08 1:17
leppie1-Jul-08 1:17 
GeneralRe: Query about generating random but unique keys of 6 digits? Pin
Rocky#1-Jul-08 1:41
Rocky#1-Jul-08 1:41 
AnswerRe: Query about generating random but unique keys of 6 digits? Pin
Alan Balkany1-Jul-08 3:40
Alan Balkany1-Jul-08 3:40 
The problem of generating non-repeating 6-digit numbers that appear random can be solved with cyclic groups:

Start with any 6-digit number. This is your first key. Pick a random prime number (any will work, but a 6-digit prime between 300000 and 700000 would be best).

Every time you add the prime number to the key (and truncate to six digits), you get the next key. The beauty of this approach is that you'll go through EVERY 6-digit number before it repeats.
QuestionPayment gateway...In C#.Net New developer in this service help ... Pin
Niraj_Silver30-Jun-08 20:37
Niraj_Silver30-Jun-08 20:37 
AnswerRe: Payment gateway...In C#.Net New developer in this service help ... Pin
leppie30-Jun-08 20:51
leppie30-Jun-08 20:51 
AnswerRe: Payment gateway...In C#.Net New developer in this service help ... Pin
Christian Graus30-Jun-08 22:00
protectorChristian Graus30-Jun-08 22:00 
Questionread file from bottom Pin
vineeshV30-Jun-08 19:12
vineeshV30-Jun-08 19:12 
AnswerRe: read file from bottom Pin
C1AllenS30-Jun-08 19:52
C1AllenS30-Jun-08 19:52 
GeneralRe: read file from bottom Pin
Atif Ali Bhatti30-Jun-08 20:49
Atif Ali Bhatti30-Jun-08 20:49 
GeneralRe: read file from bottom Pin
vineeshV30-Jun-08 22:42
vineeshV30-Jun-08 22:42 
Questionabout tabpage and forms in tabpage!!! Pin
ibrahim yilmaz30-Jun-08 18:24
ibrahim yilmaz30-Jun-08 18:24 
AnswerRe: about tabpage and forms in tabpage!!! Pin
Christian Graus30-Jun-08 19:00
protectorChristian Graus30-Jun-08 19:00 
GeneralRe: about tabpage and forms in tabpage!!! Pin
ibrahim yilmaz1-Jul-08 2:19
ibrahim yilmaz1-Jul-08 2:19 
GeneralRe: about tabpage and forms in tabpage!!! Pin
ibrahim yilmaz1-Jul-08 2:20
ibrahim yilmaz1-Jul-08 2:20 
QuestionDatabinding hyperlink text with static ID Pin
Richard Blythe30-Jun-08 17:27
Richard Blythe30-Jun-08 17:27 
AnswerRe: Databinding hyperlink text with static ID Pin
leppie30-Jun-08 20:57
leppie30-Jun-08 20:57 
QuestionComparing objects of different types Pin
Waleed Eissa30-Jun-08 14:37
Waleed Eissa30-Jun-08 14:37 
AnswerRe: Comparing objects of different types Pin
Luc Pattyn30-Jun-08 14:48
sitebuilderLuc Pattyn30-Jun-08 14:48 
GeneralRe: Comparing objects of different types Pin
Waleed Eissa30-Jun-08 21:37
Waleed Eissa30-Jun-08 21:37 
GeneralRe: Comparing objects of different types Pin
Luc Pattyn1-Jul-08 1:22
sitebuilderLuc Pattyn1-Jul-08 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.