Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [Gelöst] Zufallszahlen mit Blockly OHNE die Ziffer Null

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [Gelöst] Zufallszahlen mit Blockly OHNE die Ziffer Null

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Beowolf last edited by

      @Beowolf Bin jetzt nicht am Rechner aber dann würde ich die Zufallszahl von 1-9 mehrfach generieren und als Text(!) "addieren" und anschließend wieder zur Zahl wandeln

      1 Reply Last reply Reply Quote 0
      • B
        Beowolf last edited by

        Gute Idee - funktioniert.

        Danke für die schnelle Hilfe.

        Dr. Bakterius 1 Reply Last reply Reply Quote 0
        • Dr. Bakterius
          Dr. Bakterius Most Active @Beowolf last edited by

          @Beowolf Oder man addiert einfach 1. So wird aus 0 -> 1, aus 1 -> 2 ... aus 98 -> 99.

          Homoran 1 Reply Last reply Reply Quote 0
          • B
            Beowolf last edited by

            Der Code ist vierstellig. Das mit dem addieren funktioniert gut - ist alles schon fertig.

            1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Dr. Bakterius last edited by

              @Dr-Bakterius Wenn ich es richtig verstanden habe darf auch in der Mitte keine 0 stehen

              1 Reply Last reply Reply Quote 0
              • B
                Beowolf last edited by

                jepp, genau richtig

                1 Reply Last reply Reply Quote 0
                • Dr. Bakterius
                  Dr. Bakterius Most Active last edited by

                  Okay, dann habe ich das falsch verstanden.

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User last edited by

                    Wie wäre es mit suchen und ersetzen von "0" in der Zufallszahl? Siehe: https://forum.iobroker.net/topic/19985/vorlage-blockly-beliebiges-zeichen-im-text-tauschen

                    1 Reply Last reply Reply Quote 0
                    • B
                      Beowolf last edited by

                      Ich habe es jetzt so gemacht. Ist viel einfacher.

                      zahlen.jpg

                      Homoran 1 Reply Last reply Reply Quote 1
                      • T
                        ticaki Developer last edited by

                        Markiere deine Topic mit [gelöst] dann kommen auch keine weiteren Vorschläge mehr. 🙂

                        1 Reply Last reply Reply Quote 1
                        • B
                          Beowolf last edited by

                          Habe es geändert. Danke.

                          1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Beowolf last edited by

                            @Beowolf sagte in [Gelöst] Zufallszahlen mit Blockly OHNE die Ziffer Null:

                            Ich habe es jetzt so gemacht.

                            musstest du den Text nicht wieder in eine Zahl wandeln?
                            Akzeptiert dein "Fachcode13" auch Text?

                            1 Reply Last reply Reply Quote 0
                            • B
                              Beowolf last edited by

                              Das wird in eine SV geschrieben die von meiner Homematic CCU benötigt wird. Die ist schon als "Zahl" angelegt. Funktioniert soweit.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              892
                              Online

                              31.8k
                              Users

                              80.0k
                              Topics

                              1.3m
                              Posts

                              blockly
                              5
                              14
                              1154
                              Loading More Posts
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes
                              Reply
                              • Reply as topic
                              Log in to reply
                              Community
                              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                              The ioBroker Community 2014-2023
                              logo