I need to translate the following C++ code to C# code,
weightsVector.push_back( (( (float)rand() / ((float)(RAND_MAX)+(float)(1)) )) - 0.5); //[-0.5,0.5]
inputVector.resize(inputNumber);////std::vector inputVector;
How can I convert them to C#?
But, I am stuck with RAND_MAX and inputVector.resize(inputNumber);.
How can I convert them to C#?
What are the equivalent code?
Aucun commentaire:
Enregistrer un commentaire