Zufälliges Rechenvorzeichen von ??? |
[code:1:197d18b45a] ;Fetze seine Incredible VORZEICHENENGINE :) SeedRnd(MilliSecs()) zahl=5 zufallsvorzeichenzahl=((Rand(0,1)-0.5)*2)*zahl Print zufallsvorzeichenzahl WaitKey() End [/code:1:197d18b45a] Kann denke ich mal ganz nützlich sein :) |
von ??? |
Ein bisschen schöner gehts noch: :wink: [code:1:f0042de93f];mahe seine Incredible VORZEICHENENGINE :) SeedRnd(MilliSecs()) zahl=5 zufallsvorzeichenzahl=(2*Rand(0,1)-1)*zahl Print zufallsvorzeichenzahl WaitKey() End [/code:1:f0042de93f] |