From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36773 Path: news.gmane.org!not-for-mail From: Vyatcheslav Yatskovsky Newsgroups: gmane.comp.tex.context Subject: Re: luatex for random numbers Date: Thu, 27 Sep 2007 19:31:31 +0300 Message-ID: <176695508.20070927193131@gmail.com> References: <932847639.20070924171201@gmail.com> <6faad9f00709251502w585cf862m24bb3392996abf25@mail.gmail.com> <46FA0F5D.7040506@wxs.nl> <1267740929.20070926134033@gmail.com> <46FA38EE.7090203@wxs.nl> <1337205529.20070927001053@gmail.com> <46FADBC9.2000701@wxs.nl> <395920886.20070927015311@gmail.com> <46FB6EF1.4080701@wxs.nl> <803860895.20070927132407@gmail.com> <46FB8855.1050504@wxs.nl> <1636125260.20070927185228@gmail.com> <46FBD2FD.4060809@wxs.nl> Reply-To: Yatskovsky , mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190912328 24772 80.91.229.12 (27 Sep 2007 16:58:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Sep 2007 16:58:48 +0000 (UTC) Cc: "ntg-context-request@ntg.nl" To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 27 18:58:42 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Iawh0-00089V-IQ for gctc-ntg-context-518@m.gmane.org; Thu, 27 Sep 2007 18:58:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 54CD41FABC; Thu, 27 Sep 2007 18:58:22 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05880-05-4; Thu, 27 Sep 2007 18:58:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 420E31FDD2; Thu, 27 Sep 2007 18:32:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 872971FAFB for ; Thu, 27 Sep 2007 18:31:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01834-01 for ; Thu, 27 Sep 2007 18:31:49 +0200 (CEST) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by ronja.ntg.nl (Postfix) with ESMTP id 850331FDD2 for ; Thu, 27 Sep 2007 18:31:21 +0200 (CEST) Original-Received: by nf-out-0910.google.com with SMTP id b2so1830904nfb for ; Thu, 27 Sep 2007 09:31:21 -0700 (PDT) Original-Received: by 10.78.168.1 with SMTP id q1mr1985461hue.1190910680733; Thu, 27 Sep 2007 09:31:20 -0700 (PDT) Original-Received: from foundationly.vow.volia.net ( [77.121.150.115]) by mx.google.com with ESMTPS id c4sm1695659nfi.2007.09.27.09.31.18 (version=SSLv3 cipher=OTHER); Thu, 27 Sep 2007 09:31:19 -0700 (PDT) X-Mailer: The Bat! (v3.99.3) Professional X-Priority: 3 (Normal) In-Reply-To: <46FBD2FD.4060809@wxs.nl> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36773 Archived-At: Hello Hans, Thanks. Is there any way to print a number in hex or bin form? (Either using lua or tex facilities?) I already know how to generate random integer numbers, \ctxlua{tex.print(math.random(30,60)) ;} now I need to represent them as binary or hexadecimal. -- Best regards, Vyatcheslav Yatskovsky ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________