Home TechnologyProgrammingSQL & Databases Subscribe to RSS

How To Create A Random Number In Vb.net?

I am working on a project in which i want to give a unique customer ID to each customer. So please any one help. Please tell me the function that return a random number. Or any other solution for this problem................... Pls help me as early as possible !!!!!!!!!!!!!!!

Answer Question

1 Answer - Sort by: Date | Rating

    I would use a Guid. They are always unique.
    System.Guid
    0 0

    Ridesearch 

    answered 2 years ago

    In vb.net I use as simple code as this.
    Declar variable as integer because it's a number:
    Dim x as integer
    create a button and view code and put this code
    x = random(textbox1.text)
    msgbox(x)
    Report
    Nativman

    Nativman

    commented 12 months ago

      Answer Question - Answers are editable for 5 min.

      If you do not Sign-in or Register your answers will

      be anonymous, your answers may also be

      checked before going online.

      0

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International