Forum > General

Random values of Extended type

<< < (6/6)

Thaddy:
Would that not mean you need an unsigned type for the devisor?

tetrastes:

--- Quote from: Thaddy on April 10, 2024, 12:16:09 pm ---Would that not mean you need an unsigned type for the devisor?

--- End quote ---

It's no matter, how numbers in -1...1 interval were obtained.

In this specicfic example in the OP's code the divisor is positive: extended MaxInt64 := Power(2, 63), but it also can be negative (-Power(2, 63)), for his (supposed to be "true")

--- Quote from: fiscraliger on April 08, 2024, 07:09:13 pm ---PRNG creates signed 64-bit values, i.e. any random value from -9223372036854775808 to 9223372036854775807.

--- End quote ---

the results will be the same (neglecting [-1..1) and (-1..1] difference).
 

fiscraliger:
@tetrastes - thank you for your help and explanations. Especially your Reply #21 was very informative.

Navigation

[0] Message Index

[*] Previous page

Go to full version