Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#635 closed bug (fixed)

random() gives constant output

Reported by: steenpass Owned by: somebody
Priority: minor Milestone: 4-1-0 and higher
Component: singular-kernel Version: 4-0-0
Keywords: random Cc:

Description

Of course, one can never be sure, but I would say that, with a very high probability, this is NOT random:

> random(-2147483647, 2147483647);
-2147483647
> random(-2147483647, 2147483647);
-2147483647
> random(-2147483647, 2147483647);
-2147483647
> random(-2147483647, 2147483647);
-2147483647
> random(-2147483647, 2147483647);
-2147483647

See also: http://xkcd.com/221/

Change History (4)

comment:1 Changed 10 years ago by ren

quick: if you had to pick pairwise different 6 numbers between 1 and 49, what would they be?

comment:2 Changed 10 years ago by steenpass

Cf. the numbers chosen on July 30, 2014:

https://www.lotto.de/de/ergebnisse/lotto-6aus49/archiv.html

comment:3 Changed 10 years ago by hannes

Resolution: fixed
Status: newclosed

fixed: added test, max-min is limited by 231

Note: See TracTickets for help on using tickets.