[racket-users] Generate really large random numbers in Racket

2019-04-01 Thread polarishehn
Hello everyone, It appears that the largest number returned by the random function in Racket is 4294967087-1 for a good reason. Are there any libraries or simple approaches to generate a number larger than that? Thanks, Shaobo -- You received this message because you are subscribed to the Goo

[racket-users] The distribution of numbers returned by (random)

2019-04-02 Thread polarishehn
Hello everyone, The specification of `random` function with zero arguments is only that a random inexact real numbers between 0 and 1 is generated. I have two quick questions about it, 1. Will all random inexact real numbers between 0 and 1 be eventually generated? 2. What's the distribution o

[racket-users] Assertion failures in bigfloat package

2019-04-18 Thread polarishehn
Hello everyone, I'm using Racket's MPFR bindings to build an application and encountered assertions failures like `../../src/get_str.c:153: MPFR assertion failed: size_s1 >= m`. Somehow I could not reproduce this error provided I set the random seed correctly. So I have two questions here, 1.

[racket-users] SIGSEGV when running Racket

2019-04-21 Thread polarishehn
Hello everyone, I observed some exceptions like `SIGSEGV MAPERR si_code 1 fault on addr 0x7f6f4e30fff0` when running a Racket program. Any ideas why this happens? Thanks, Shaobo -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe f