https://bugs.documentfoundation.org/show_bug.cgi?id=90110
Bug ID: 90110
Summary: The instruction "Randomize" does not operate correctly
Product: LibreOffice
Version: unspecified
Hardware: Other
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
I made a macro for "Calc" on Open Office, in order to train my little daughter
with multiplications. It needs random numbers, and the part which create this
numbers looks like this :
nouveau:
Randomize
ch1 = int(10* Rnd + 1)
Randomize
ch2 = int(10 * Rnd + 1)
'pose la question de la multiplication et attends le réponse
Message = "calcule " & ch1 & " x " & ch2 ' Définit le message.
Title = "MULTIPLICATION" ' Définit le titre.
Defaut = "0" ' Définition de la valeur par défaut.
' Affiche le message, le titre et la valeur par défaut.
result = InputBox(Message, Title, Defaut)
With Open Office I really obtain two random numbers.
With Libre Office (I just begin with it) I systematically have the two same
numbers.
I tried to add a number at the instruction "Randomize, lique this :
Randomize
ch1 = int(10* Rnd + 1)
Randomize (3)
ch2 = int(10 * Rnd + 1)
Then the second number was generally different from the first, but did not
change !
Worse : I tried to debug the programm with the stop points and the
witness(témoin in french), and in these conditions the programs functionned
correctly!
Thanks for your help
BA
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs