From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: [random sorting] (was: org table: one column of random numbers (but natural ones))
Date: Fri, 29 May 2020 13:19:33 +0200 [thread overview]
Message-ID: <87eer3dm4a.fsf_-_@mat.ucm.es> (raw)
In-Reply-To: m2wo4vvmat.fsf@Margil.fritz.box
[-- Attachment #1: Type: text/plain, Size: 925 bytes --]
>>> "SB" == Stig Brautaset <stig@brautaset.org> writes:
>> > 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
>>
>> Aha thanks, a minor thing, which I thank, cannot be really done:
>>
>> Is it possible to avoid number repetition?
>>
>> So I want a random sequence of the column 67 but I don't want numbers to
>> be repeated.
> To avoid duplicates you could generate a sequence from [0..67), shuffle
> it[1], then use the row number as an index into that list. (Or pop off the
> front.) How to do that from an org table function I have no idea,
> however.
Thanks I tried in a row of 33
$5=random([0..34]);f0
$5=random([0..34));f0
$5=random([0..33));f0
But random repeats, however org-table-sort-lines sorts anyway
And what I truly needed is a random sorting of sorts.
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
next prev parent reply other threads:[~2020-05-29 11:20 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
2020-05-28 18:25 ` Uwe Brauer
2020-05-28 20:26 ` Stig Brautaset
2020-05-29 11:19 ` Uwe Brauer [this message]
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eer3dm4a.fsf_-_@mat.ucm.es \
--to=oub@mat.ucm.es \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).