emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org table: one column of random numbers (but natural ones)


From: tbanelwebmin
Subject: Re: org table: one column of random numbers (but natural ones)
Date: Thu, 28 May 2020 08:06:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]