• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

AE Zufallszahlen zwischen 2 Zahlen - AE Create random numbers between 2 values

Community Beginner ,
Aug 07, 2017 Aug 07, 2017

Copy link to clipboard

Copied

Hello, i would like to animate randomly numbers between to values. For Exemple Birth Years between 1930 and 2017 or body hight between 155 cm and 207 cm.

I didn't learn Expression yet. In the Toutorials I found, they use a slider, but even not between to values. How can I solve this?

Sorry for my english!

I hope somebody can help me

Hallo, kann mir jemand helfen?

Ich möchte z.B. Körpergößen zwischen 155cm und 207cm zufällig animieren, oder Geburtsjahre zwischen 1930 und 2017.

Wenn ich das mit Zeichenversatz mache kommen alle anderen Zahlen auch.

Expression kann ich leider bis jetzt nicht. Es gibt Toutorials mit dem Schieberegler / Slider aber leider kann ich das auch nicht so modifiztieren dass es zwischen den 2 Zahlen bleibt.

Thank You so much

Eva

Views

866

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 08, 2017 Aug 08, 2017

Hab 'ne Klammer vergessen:

Math.round(random(155,207));

Mylenium

Votes

Translate

Translate
LEGEND ,
Aug 08, 2017 Aug 08, 2017

Copy link to clipboard

Copied

Einfach eine Quelltext/ Source Text Expression verwenden:

Math.round(random(155,207);

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 08, 2017 Aug 08, 2017

Copy link to clipboard

Copied

Danke Dir für die schnelle Antwort. Leider sagt AE: Fehler in Expression.

Ich habe deine Zeile kopiert. Kann also meinerseits kein Schreibfehler sein.

Irgendwas in der Richtung wird es aber sein. Da meine Programmierkünste gleich Null sind......

Hast du noch eine Idee?????

Danke

Eva

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 08, 2017 Aug 08, 2017

Copy link to clipboard

Copied

Hab 'ne Klammer vergessen:

Math.round(random(155,207));

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 08, 2017 Aug 08, 2017

Copy link to clipboard

Copied

LATEST

Vergiss den letzten text. Danke, Danke, Danke!

Das hat geholfen.

Grüße von Eva

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 08, 2017 Aug 08, 2017

Copy link to clipboard

Copied

Jetzt habe ich fast eine Lösung nur leider viele Kommastellen.

Ich habe einen Schiebereglereffekt eingefügt. Den Quelltext mit dem Gummiband bei gedrückter Alttaste verbunden.

Damit wurde folgende Expression Zeile erzeugt: effect("Einstellungen für Schieberegler")("Schieberegler")

Im Diagrammeditor habe ich bei dem Schieberegler eine Kurve gezeichnet die zwischen den 2 Werten einige Male hoch und runter geht.

Damit sieht es zufällig aus. Aber leider gibt es viele Komma bzw. Stellen nach dem Punkt. Ich wollte nur gerade Zahlen.

D.h. der Expressiontext muss noch anders lauten???

Aber wie??????

Danke

LG Eva

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines