[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[random sorting] (was: org table: one column of random numbers (but natu
From: |
Uwe Brauer |
Subject: |
[random sorting] (was: org table: one column of random numbers (but natural ones)) |
Date: |
Fri, 29 May 2020 13:19:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
>>> "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.
smime.p7s
Description: S/MIME cryptographic signature
Re: org table: one column of random numbers (but natural ones), Eric S Fraga, 2020/05/28
Re: org table: one column of random numbers (but natural ones), Eric S Fraga, 2020/05/28