none
formar numeros aleatorios RRS feed

Respostas

  • .NET Way:

     

    Code Snippet

    Random^ randGen = gcnew Random(seed);

     

    int iGeneratedNumber =  randGen->Next();

     

     

     

    Native Way:

     

    Code Snippet

    #include <cstdlib>

     

    ....

    int iGeneratedNumber = rand();

    ....

     

     

     

    []'s

     

    Waner Tavares

    segunda-feira, 18 de junho de 2007 19:16