From: tbanelwebmin <tbanelwebmin@free.fr>
To: emacs-orgmode@gnu.org
Subject: Re: org table: one column of random numbers (but natural ones)
Date: Thu, 28 May 2020 08:06:20 +0200 [thread overview]
Message-ID: <52b74175-5b6a-a78d-7d1f-8e3da16f184a@free.fr> (raw)
In-Reply-To: <87mu5taz7a.fsf@mat.ucm.es>
Le 27/05/2020 à 22:40, Uwe Brauer a écrit :
> Hi
>
>
> I have a org table and want to add a new colum, which natural numbers
> which are randomly ordered
>
> So I tried
>
> #+TBLFM: $1=@#-1::$4=random($1@4);f1
>
> But the column contains real numbers
>
> What can I do
>
> Uwe Brauer
>
>
What about:
#+TBLFM: $4=random($1);f0
In row 67 you would have a random integer in the range [0..67)
f0 format removes any fractional part leaving only an integer number
next prev parent reply other threads:[~2020-05-28 6:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-27 20:40 org table: one column of random numbers (but natural ones) Uwe Brauer
2020-05-28 6:06 ` tbanelwebmin [this message]
2020-05-28 18:25 ` Uwe Brauer
2020-05-28 20:26 ` Stig Brautaset
2020-05-29 11:19 ` [random sorting] (was: org table: one column of random numbers (but natural ones)) Uwe Brauer
2020-05-29 11:43 ` [random sorting] Eric S Fraga
2020-05-29 16:52 ` [random sorting] (was: org table: one column of random numbers (but natural ones)) Stig Brautaset
2020-05-28 7:54 ` org table: one column of random numbers (but natural ones) Eric S Fraga
2020-05-28 7:56 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52b74175-5b6a-a78d-7d1f-8e3da16f184a@free.fr \
--to=tbanelwebmin@free.fr \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.