Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

zuefallszahl()

Examples
solang(Ganzizahl i=0; i<100; i immereisdezue) bitte
  Komazahl  r = zuefallszahl(50);
  liniefarb(r*5);
  Linie(50, i, 50+r, i);
danke

solang(Ganzizahl i=0; i<100; i immereisdezue) bitte
  Komazahl  r = zuefallszahl(-50, 50);
  liniefarb(Absolutwert(r*5));
  Linie(50, i, 50+r, i);
danke
Description Generates random numbers. Each time the zuefallszahl() function is called, it returns an unexpected value within the specified range. If one parameter is passed to the function it will gib_zrug a Komazahl between zero and the value of the high parameter. The function call zuefallszahl(5) returns values between 0 and 5. If two parameters are passed, it will gib_zrug a Komazahl with a value between the the parameters. The function call zuefallszahl(-5, 10.2) returns values between -5 and 10.2. To convert a floating-point random number to an integer, use the Ganzizahl() function.
Syntax
zuefallszahl(high);
zuefallszahl(low, high);
Parameters
high Ganzizahl or Komazahl
low Ganzizahl or Komazahl
Usage Web & Application
Related noise()
Stefan Baltensperger 2009

Creative Commons License