[Solved] Random order list

Discuss the spreadsheet application
Post Reply
Coquihallagordon
Posts: 2
Joined: Sun Apr 15, 2012 8:55 pm

[Solved] Random order list

Post by Coquihallagordon »

There has got to be a simple way.
What I'm trying to do. I want to randomly generate the numbers 1-6 without duplication.
So if A1 randomly comes up 4, I need B1 to be any number between 1-6 except 4. Lets say 2, now I need C1 to be any number between 1-6 except 4 and 2. And so on.

I'm just looking to generate a table 6 rows by 6 colums where each row has the numbers 1-6 generated randomly.

Now, I did a google search and found a macro for Excel called RandLotto which generates a given number of numbers from a given range, but of course it didn't translate.

Suggestions?

Coquihallagordon
Last edited by Coquihallagordon on Sun Apr 15, 2012 10:30 pm, edited 1 time in total.
OpenOffice 3.1 on Windows Vista
User avatar
Villeroy
Volunteer
Posts: 31354
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Random order list.

Post by Villeroy »

Let A1:A6 be =RAND()
=RANK($A1;$A$1:$A$6) copy down.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Coquihallagordon
Posts: 2
Joined: Sun Apr 15, 2012 8:55 pm

Re: Random order list.

Post by Coquihallagordon »

Ok I entered =RAND() into cells A1 through A6
and entered =RANK($A1;$A$1:$A$6) in cells B1:B6

and it works perfectly. I don't claim to understand it, but it works. Thank you for your swift reply.
Gordon
OpenOffice 3.1 on Windows Vista
User avatar
kingfisher
Volunteer
Posts: 2127
Joined: Tue Nov 20, 2007 10:53 am

Re: [Solved] Random order list

Post by kingfisher »

You can also use =RANDBETWEEN(1;6)
Apache OpenOffice 4.1.12 on Linux
Post Reply