Generate random numbers in a vector of floats in the C language

Asked

Viewed 269 times

2

I would like to know methods of generating a sequence of random numbers, ranging from 0 to 10, of type float in a size 10 vector.

  • What is the difference between the current question and this? There’s something this one won’t answer?

  • @Wtrmute the question you mention is about integer random numbers

  • @heavydsoul Random numbers must be generated through the standard library or must be generated through an algorithm implemented manually ?

  • @merchant: And is it really so difficult to convert an entire number into a floating point? I don’t understand.

  • @Wtrmute really isn’t hard, but the shape is different. Maybe OP can do with integers but has some difficulty with real numbers. It is difficult to know what problems he had due to the fact that his question does not provide such details.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.