Funzione matematica per fare un numero casuale.

« Older   Newer »
  Share  
Dragon[ITA]
CAT_IMG Posted on 5/5/2010, 13:30     +1   -1




corta e semplice >_> è una formula:

$x = $K*$x*(1-$x)^2
5.3 > $k > 6
0 < $x < 1

ESEMPIO:
CODICE
$x = 0.2
do
$x = 5.50*$x*(1-$x)^2
until msgbox(1,"",$x) <> 1
 
Top
Aaly
CAT_IMG Posted on 5/5/2010, 15:09     +1   -1




uhm.. preferisco
CODICE
$valore = Random(min,max)

xD
 
Top
Dragon[ITA]
CAT_IMG Posted on 5/5/2010, 18:37     +1   -1




hai ragione ma così è + stiloso
 
Top
nicofossa96
CAT_IMG Posted on 5/5/2010, 18:44     +1   -1




Si, ma si potrebbe anche fare:
round((@msec*@min*@hour)-@msec^@min*3,141592654)

XDXD
 
Top
Kurt_Black_hat 2.0
CAT_IMG Posted on 5/5/2010, 19:11     +1   -1




Ma andate a cagare xD
 
Top
Gianlu-thebest
CAT_IMG Posted on 7/5/2010, 15:17     +1   -1




ahah xD
quoto kurt...
comunque carino
non ho capito a che serve round..
 
Top
5 replies since 5/5/2010, 13:30   124 views
  Share