From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Francis Wright Newsgroups: gmane.emacs.bugs Subject: bug#32605: 26.1; (random) never returns negative Date: Sat, 01 Sep 2018 18:18:01 +0100 Message-ID: <855zzpf86u.fsf@gmail.com> Reply-To: f.j.wright@live.co.uk NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1535822384 22536 195.159.176.226 (1 Sep 2018 17:19:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 1 Sep 2018 17:19:44 +0000 (UTC) To: 32605@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 01 19:19:40 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fw9Yg-0005kw-Bn for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Sep 2018 19:19:38 +0200 Original-Received: from localhost ([::1]:37956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw9am-0001fY-Q1 for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Sep 2018 13:21:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw9aB-0001Rg-I0 for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 13:21:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw9a2-00013k-Hv for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 13:21:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fw9a2-00013a-Dj for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 13:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fw9a2-0000Y4-3j for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 13:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Francis Wright Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Sep 2018 17:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32605 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15358224542073 (code B ref -1); Sat, 01 Sep 2018 17:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Sep 2018 17:20:54 +0000 Original-Received: from localhost ([127.0.0.1]:42076 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fw9Zu-0000XM-33 for submit@debbugs.gnu.org; Sat, 01 Sep 2018 13:20:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48463) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fw9Zt-0000X8-86 for submit@debbugs.gnu.org; Sat, 01 Sep 2018 13:20:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw9Zi-0000vj-DK for submit@debbugs.gnu.org; Sat, 01 Sep 2018 13:20:45 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fw9Zi-0000vT-3i for submit@debbugs.gnu.org; Sat, 01 Sep 2018 13:20:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw9Ze-0001EW-L2 for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 13:20:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw9XB-0007i5-EX for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 13:18:08 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:40209) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fw9XB-0007gg-7L for bug-gnu-emacs@gnu.org; Sat, 01 Sep 2018 13:18:05 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id n2-v6so13940832wrw.7 for ; Sat, 01 Sep 2018 10:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:reply-to:date:message-id:mime-version :content-transfer-encoding; bh=FsyHN41X96cC5fbiGYElqlMCmgnAQrpErD6+opD2St0=; b=tZJ/yMRyHQ3vobEELRCpds03mO4rDFVSDJpJ+zzzttYNxd65+kUqkaaVinYoUUmKNQ NK2+NX1/SI6+L9Pn+Od44aJlNvBw8LzY2b3+DYAw3Gh0RnqWSGkVUhqfABodtcXs3oek XPfvm7N8OOKXRGlrLNccNO+x00PUWBuRt8FYzW/UXUjrOFCyTqA2/5NWPHkjVHXcUBGr Q9OZD0vqAgmbOkynF1Zn9H7gCHdifBsLi++fd0yUrIwZUfgGGzCgKtjWgkoPtdbnpf8O svfdDWvHfVhp6374cy/huocNEjfdP1+IoQnc7UnQXQ6Br/B3UCR9yy+nMJjzilemjGd1 8iEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:reply-to:date:message-id :mime-version:content-transfer-encoding; bh=FsyHN41X96cC5fbiGYElqlMCmgnAQrpErD6+opD2St0=; b=Z8Vz2fZcFgrg1eAoXv8Ij3BZhOTR1v3WDk0u74lWZLDMPHRHDkOncDUCVqFRF+W+Do IsMxWWNU7XkbzHmU7AsCb6floLqOJy/1NOS4pB23l2ULn28AOANoN6Lh19u2EWOkpnOE 72UrjU8zbUtStqR5tyuljnnlk2xMglq2tktuyRJHJyuKsNi40QZZnxojBlRDyvuLajn+ x7dmNLqyd4AZU0GRa4h4vO30zgHZXexRWhYBpdd6eeO3cLpg6cbFLJfC8v7ZVrANqUaD DbCTdR8MrlByOZ057Axjr2WsaZPGk7d+4Vpx5w9+55uWJBVvh4luBw53udFo5PFDchsx 6Nzg== X-Gm-Message-State: APzg51CMMU22C9/Y5fjaD1I8tHN456DWIge7ZQHwEC7fvfzDkTtnJIow RnLuGvKWS9ZTqlq2LgtVp7XRBVqe X-Google-Smtp-Source: ANB0VdZrffPm2KmlnC3947QdAFyqhY6mM35Kbb8bmPpAFe+f/4zlUz9pRR+2HcxPVTmmx87xt+OE9g== X-Received: by 2002:adf:d84a:: with SMTP id k10-v6mr13276579wrl.26.1535822283371; Sat, 01 Sep 2018 10:18:03 -0700 (PDT) Original-Received: from Monolith (host-92-19-191-141.as13285.net. [92.19.191.141]) by smtp.gmail.com with ESMTPSA id 75-v6sm15810157wml.21.2018.09.01.10.18.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 01 Sep 2018 10:18:02 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149949 Archived-At: According to my reading of both the documentation for the function random and its description in the manual, if it is called with no argument then "the value might be any integer representable in Lisp, i.e., an integer between =A1=AEmost-negative-fixnum=A1=AF and =A1=AEmost-positive-fixnum=A1=AF". Therefore, it should return a negative = integer half the time, but I have never yet seen it return a negative value. So either the documentation or the implementation is wrong. For what it's worth, I would prefer the documented behaviour over the current actual behaviour. In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 built on CIRROCUMULUS Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor 'Microsoft Corp.', version 10.0.17134 Recent messages: Canceling debug-on-entry for all functions You can run the command =A1=AEcancel-debug-on-entry=A1=AF with M-x ca-d-e R= ET Canceling debug-on-entry for all functions 1515484088033472457 / 2067076301065092720 t [2 times] Mark set [2 times] Saving file c:/Users/fjw/REDUCE@SourceForge/emacs/REDUCE/Big Integer Suppor= t/eslbigint.el... Wrote c:/Users/fjw/REDUCE@SourceForge/emacs/REDUCE/Big Integer Support/eslb= igint.el Type "q" in help window to restore its previous buffer. mwheel-scroll: End of buffer [6 times] mwheel-scroll: Beginning of buffer [9 times] Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Info Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t show-paren-mode: t delete-selection-mode: t electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils info eieio-opt speedbar sb-image ezimage dframe find-func help-fns radix-tree cl-extra thingatpt misearch multi-isearch edebug reposition time-stamp help-mode cl-print debug vc-git diff-mode easy-mmode vc-dispatcher vc-svn dired dired-loaddefs flyspell ispell imenu tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice paren delsel cus-start cus-load finder-inf package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib elec-pair server time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 277958 12135) (symbols 56 26263 1) (miscs 48 215 603) (strings 32 53052 3399) (string-bytes 1 1403187) (vectors 16 43081) (vector-slots 8 801770 16514) (floats 8 79 425) (intervals 56 1601 17) (buffers 992 18))