B
B
bunnyyy2020-10-21 00:45:24
C++ / C#
bunnyyy, 2020-10-21 00:45:24

How to generate random real numbers in a given range?

Can this be done with rand?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-10-21
@bunnyyy

We generate the numerator and denominator of the continued fraction in the given range using rand() and check that the result is a real number.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question