[Solved] RANDBETWEEN numbers keep changing
[Solved] RANDBETWEEN numbers keep changing
Im using lists of randomly generated numbers and iv just noticed that they have been changing. The first 8 out of 10 lists have now all got different numbers than when I first started making the document, but I haven't touched those cells since, why would this happen and is there a way to stop it?
Last edited by robleyd on Tue Jun 02, 2020 2:55 pm, edited 3 times in total.
Reason: Add green tick
Reason: Add green tick
Open office 4.1.7 on mac os mojave 10.14.6
Re: randbtween numbers keep changing
From the HELP -F1:
RANDBETWEEN
Returns an integer random number in a specified range.
Syntax
RANDBETWEEN(Bottom; Top)
Returns an integer random number between integers Bottom and Top (both inclusive).
This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press Shift+Ctrl+F9.
To generate random numbers which never recalculate, copy cells containing this function, and use Edit - Paste Special (with Paste All and Formulas not marked and Numbers marked).
RANDBETWEEN
Returns an integer random number in a specified range.
Syntax
RANDBETWEEN(Bottom; Top)
Returns an integer random number between integers Bottom and Top (both inclusive).
This function produces a new random number each time Calc recalculates. To force Calc to recalculate manually press Shift+Ctrl+F9.
To generate random numbers which never recalculate, copy cells containing this function, and use Edit - Paste Special (with Paste All and Formulas not marked and Numbers marked).
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Re: RANDBETWEEN numbers keep changing
RANDBWTWEEN(A1;B1) recalculates when A1 or B1 change, when you edit the formula, when the document is (re-)loaded or when Ctrl+Shift+F9 enforces a complete recalculation.robleyd wrote:This function produces a new random number each time Calc recalculates.
RAND() recalculates with every recalculation anywhere in the same document. RAND() is a volatile function. RANDBETWEEN is a regular function.
The solution remains the same. Paste-special can be used to convert formula results into constant values.
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: RANDBETWEEN numbers keep changing
Ah thankyou. It seems odd though that this would be an intentional function, especially if there is a way to manually recalculated if you wanted to anyway. Incidentally I do not have an F9 key on my macbookpro so not sure how I would use that function if I needed it.
Open office 4.1.7 on mac os mojave 10.14.6
Re: [Solved] RANDBETWEEN numbers keep changing
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] RANDBETWEEN numbers keep changing
(Just a bit off topic:)
In recent versions of LibreOffice Calc RANDBETWEEN() also is volatile as RAND() is.
In pusuit of the old enhancement request (tdf#127831) https://bugs.documentfoundation.org/sho ... ?id=127831 the version 7.0 of LibreOffice (coming soon) will offer two new NonVolatile functions RAND.NV() and RANDBETWEEN.NV().
In recent versions of LibreOffice Calc RANDBETWEEN() also is volatile as RAND() is.
In pusuit of the old enhancement request (tdf#127831) https://bugs.documentfoundation.org/sho ... ?id=127831 the version 7.0 of LibreOffice (coming soon) will offer two new NonVolatile functions RAND.NV() and RANDBETWEEN.NV().
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
Re: [Solved] RANDBETWEEN numbers keep changing
Changing the original RANDBEETWEEN to be volatile will break existing spreadsheets.
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] RANDBETWEEN numbers keep changing
They did nonetheless.
Just checked some of my preserved versions. It happened with V 6.2.
(I also suspect it wasn't sufficiently considered. Do you remember the "Update-References-When-Sorting-Range-Of-Cells-affair" [Kohei Yoshida]? It must have happened around LibO V4.2.)
Just checked some of my preserved versions. It happened with V 6.2.
(I also suspect it wasn't sufficiently considered. Do you remember the "Update-References-When-Sorting-Range-Of-Cells-affair" [Kohei Yoshida]? It must have happened around LibO V4.2.)
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
Re: [Solved] RANDBETWEEN numbers keep changing
Luckily I don't use any spreadsheets except for "cheap database reporting".
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] RANDBETWEEN numbers keep changing
Looking at your current avatar I would assume you had to cope a lot with spreadsheets the last few days.Villeroy wrote:Luckily I don't use any spreadsheets except for "cheap database reporting".
Well, get lucky again!
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
---
Lupp from München
Re: [Solved] RANDBETWEEN numbers keep changing
Thank you for the heads up. I'm running with Pluto again.
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] RANDBETWEEN numbers keep changing
@Villeroy: I preferred your butterfly! I felt it gave a certain gravitas to your postings.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Re: [Solved] RANDBETWEEN numbers keep changing
Butterfly. Red and black. Majestic.
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
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: [Solved] RANDBETWEEN numbers keep changing
ctrl + shift + (fn) F9 doesn't do anything...
Open office 4.1.7 on mac os mojave 10.14.6
Re: [Solved] RANDBETWEEN numbers keep changing
It works on Windows. You must know what hotkey recalculation will activize on your operating system. Try to check it from the menu.ctrl + shift + (fn) F9 doesn't do anything...
______________________________________________
Open office 4.1.7 on mac os mojave 10.14.6
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: [Solved] RANDBETWEEN numbers keep changing
I seem to have a different menu system to you. Was gonna upload a screenshot but it says maximum size is 128Kb, never heard of an image file being that small
Open office 4.1.7 on mac os mojave 10.14.6
- Hagar Delest
- Moderator
- Posts: 32665
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: [Solved] RANDBETWEEN numbers keep changing
ronanski wrote:Was gonna upload a screenshot but it says maximum size is 128Kb, never heard of an image file being that small
Then look at the screenshot from the post above yours. It's only 48kB.
Just crop your screenshot, reduce the color depth if really necessary.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Re: [Solved] RANDBETWEEN numbers keep changing
well its already cropped to the size i need. I have no idea how to reduce colour depth
Open office 4.1.7 on mac os mojave 10.14.6
- Hagar Delest
- Moderator
- Posts: 32665
- Joined: Sun Oct 07, 2007 9:07 pm
- Location: France
Re: [Solved] RANDBETWEEN numbers keep changing
You can use a 3rd party site for sharing files.
With any picture manager there should be a menu dealing with colors and reducing the number of colors.
With any picture manager there should be a menu dealing with colors and reducing the number of colors.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10