Hi,
I need a vb.net code that will give me random numbers, which i will save in a database column in a primary key field.
But the code should surely generate the random number.
Thanx & Regards
Anup
Hi,
I need a vb.net code that will give me random numbers, which i will save in a database column in a primary key field.
But the code should surely generate the random number.
Thanx & Regards
Anup
RandomNumber = New System.Random().Next(1, 100);
You'll have to check for duplicates yourself. Any particular reason you want to use this as a PK ?
Thats what i am doing now. CHECK FOR DUPLICATES.
If you can tell me the code How to check for Duplicates in vb.net, then i can save my time...
Thanx
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.