Obter Um Numero Aleatorio Entre 1 à 1000
#1
Posted 26/02/2005, 00:25
por exemplo, uma hora ele escolhe o numero 237, outra hora o 336 etc...
Hospedagem de Sites // Revenda de Hospedagem // Streaming & Web Rádio // Domínios // Vps
Hospedagem Ilimitada -> R$ 15,00 ao Mês + 30 Dias Grátis
Outros Sites: Jogos Loucos em Flash | Divulgue seu site Gratis | Web Masters Dicas & Tutoriais
#2
Posted 26/02/2005, 09:04
#3 Whitesnake
Posted 26/02/2005, 14:23
Caso queira retornar em valor inteiro aí seria int rand(1000)
Flw.
#4
Posted 27/02/2005, 02:16
tb pode por entre parenteses hehe inutil neh ...
print join'',(reverse map{/d([a-z])d/}split/W/,'$5x6@314&60f%3i4#moo^1r2#moo^1p2')," ", pack ("B*",'01110000011001010111001001101100')," ", pack ("B*",'011011010110111101101110011010110110010101111001'), "n";
sleep 5;
E-Mails, topicos ou mensagens privadas não serão respondidas a menos que eu considere uma relevancia/necessidade na mesma.
#5
Posted 27/02/2005, 03:53
To fazendo um sistema de banner, ai fiquei meio na duvida, pq ele só pegava os quebrados ... 3.5 algo assim
Hospedagem de Sites // Revenda de Hospedagem // Streaming & Web Rádio // Domínios // Vps
Hospedagem Ilimitada -> R$ 15,00 ao Mês + 30 Dias Grátis
Outros Sites: Jogos Loucos em Flash | Divulgue seu site Gratis | Web Masters Dicas & Tutoriais
#6 Whitesnake
Posted 27/02/2005, 12:26
$a=50; #Número mínimo
$b=100; #Número máximo
$n=int rand($;
while ($n < $a){
$n=int rand($;
}
Ou seja ele vai ficar gerando número até que este seja menor que 50, mas como o processamento é rápido nem se percebe! hehehe
Flw
#7
Posted 27/02/2005, 16:57
usando somente o rand q vc recebeu o valor 3.5 ou usando int rand(numero);valeu
To fazendo um sistema de banner, ai fiquei meio na duvida, pq ele só pegava os quebrados ... 3.5 algo assim
print join'',(reverse map{/d([a-z])d/}split/W/,'$5x6@314&60f%3i4#moo^1r2#moo^1p2')," ", pack ("B*",'01110000011001010111001001101100')," ", pack ("B*",'011011010110111101101110011010110110010101111001'), "n";
sleep 5;
E-Mails, topicos ou mensagens privadas não serão respondidas a menos que eu considere uma relevancia/necessidade na mesma.
#8
Posted 27/02/2005, 19:48
Hospedagem de Sites // Revenda de Hospedagem // Streaming & Web Rádio // Domínios // Vps
Hospedagem Ilimitada -> R$ 15,00 ao Mês + 30 Dias Grátis
Outros Sites: Jogos Loucos em Flash | Divulgue seu site Gratis | Web Masters Dicas & Tutoriais
#9
Posted 27/02/2005, 20:37
SELECT ... RAND(ID) RAND(NOW()) etc
Edição feita por: prix, 27/02/2005, 20:40.
print join'',(reverse map{/d([a-z])d/}split/W/,'$5x6@314&60f%3i4#moo^1r2#moo^1p2')," ", pack ("B*",'01110000011001010111001001101100')," ", pack ("B*",'011011010110111101101110011010110110010101111001'), "n";
sleep 5;
E-Mails, topicos ou mensagens privadas não serão respondidas a menos que eu considere uma relevancia/necessidade na mesma.
#10
Posted 27/02/2005, 21:04
Hospedagem de Sites // Revenda de Hospedagem // Streaming & Web Rádio // Domínios // Vps
Hospedagem Ilimitada -> R$ 15,00 ao Mês + 30 Dias Grátis
Outros Sites: Jogos Loucos em Flash | Divulgue seu site Gratis | Web Masters Dicas & Tutoriais
#11
Posted 27/02/2005, 22:19
Bom no seu caso seria algo como:
SELECT informações FROM tabela WHERE alguma coisa ORDER BY RAND() LIMIT 1
assim ele ira randomicamente selecionar um resultado da sua tabela limitado por 1
creio q você possa tambem adicionar no RAND o seguinte RAND(campodatabela)
exemplo:
RAND(ID)
Edição feita por: prix, 27/02/2005, 22:19.
print join'',(reverse map{/d([a-z])d/}split/W/,'$5x6@314&60f%3i4#moo^1r2#moo^1p2')," ", pack ("B*",'01110000011001010111001001101100')," ", pack ("B*",'011011010110111101101110011010110110010101111001'), "n";
sleep 5;
E-Mails, topicos ou mensagens privadas não serão respondidas a menos que eu considere uma relevancia/necessidade na mesma.
#12
Posted 11/10/2017, 09:52
Misoprostol Cheap Pastillas Cytotec Donde Las Venden Viagra Cialis Efficacite viagra Cytotec Pills Propecia Testomonials Reviews
Cialis Efectos Mujeres Dog Medicine Keflex Levitra Generico Forum Online buy viagra online By Fish Amoxicillin
#14
Posted 29/10/2017, 23:01
Comment Acheter Cytotec Cialis Without Prescription Canada Cialis 20 Dosaggio generic levitra for sale buy accutane in london
Kamagra Sildenafil 100 Milligrammi Acheter Cialis Par Paypal Longer In Bed viagra online Effets Cialis Viagra
Lloyds Pharmacy Propecia Cytotec Vente Ligne cialis Propecia Prix Prix Propecia Pas Cher
#15
Posted 01/11/2017, 14:05
Discounts! great buy makeup
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
N2 high quality white color electric violin 44 violin handcraft violino musical instruments violin brazil wood bow ( 109.25 $)
Flexible Bending Arm Holder Bracket for Soocoo G1 Camera-6.68 $
затяжка болтов коленвала
Brazilian virgin hair 7a unprocessed brazilian curly virgin hair wet and wavy virgin brazilian hair weave 3 bundles jerry curly ( 51.00 $)
Atelier Byzantium - Grey Murano Glass Silver Leaf Dangling Earrings ( 65.00 $)
Ophir airbrush cosmetic makeup system kit 0.3mm air brush bag_op-mk002b ( 112.58 $)
Agepoch 10+1 bb af103 bait cast baitcasting jig left right hand fishing reel feeder carp gear sea spool peche wheel ( 63.30 $)
2016 New Long Parkas Female Women Winter Coat Thickening Cotton Winter Jacket Womens Outwear Parkas for Women Winter Outwear ( 56.88 $)
Trendy push up pure color bikini suit for women ( 18.72 $)
Ophir 3 airbrush guns with air brush tank compressor for car paint hobby tattoo cake decorating airbrush kit _ac090+004a+071+006 ( 122.19 $)
Turquoise Wool and Cashmere Fringed Stole ( 42.00 $)
JLB 2.4G Cheetah 1 10 Scale 4 Wheel Drive High Speed Buggy RC Racing Car-318.20 $
grand theft auto iii коды
UMI ROME X 3G Phablet ( 64.99 $)
1PCS Skid Resistance Body Sponge Bath Massage Of Shower Bath Scrub Gloves Shower Exfoliating Bath Gloves Shower Scrubber Cuozao ( 1.24 $)
Discounts! best makeup awards
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
Cube Mix Plus 2 in 1 Tablet PC-420.22 $
Brazilian virgin hair body wave 3 bundles lot brazilian body wave 100% unprocessed brazilian hair weave bundles cheap human hair ( 53.80 $)
Ultra-light 450g! bb30 carbon crank bicycle crank bcd110 170172.5175mm carbon fiber crankset road bike pedivela de bike ( 156.00 $)
Ross pretty hair quality brazilian virgin hair lace closure three part closoure middle part human hair body wave fast free ship ( 34.80 $)
Sterling Silver Rabbit Pendant Long Necklace ( 140.00 $)
шоппинг лайф первый немецкий интернет телемагазин скидки
SimToo GPS Band Control HD 16MP CAM 8 Channel Double-axis Gimbal 6 Axis Gyro Dragonfly Drone Quadcopter-599.00 $
8A Indian Virgin Hair Body Wave 3PcsLot Unprocessed Raw Indian Hair Body Wave Bundles She Hair Products Top Human Hair Bundles ( 75.40 $)
Makeupmarket Cosmetics cod - Internet-store of decorative cosmetics for face, body and hair
Hair color wax dye one-time molding paste seven colors available BLUE Burgundy grandma gray green hair dye wax ( 6.00 $)
Vernee Mars 4G Phablet-258.34 $
New arrival cotton men solid long sleeve hoodie sweatshirt men tops jacket coat outwear plus size ( 9.14 $)
nike air force 1 07 lv8
Nomu S30 4G Phablet-269.60 $
Mens Cable Knit Wool Blend Scarf ( 81.00 $)
Discounts! best hair styling product
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
Peruvian Virgin Hair 2 Bundles Deals Peerless Virgin Hair Peruvian Body Wave 7A Peruvian Hair Bundles Cheap Human Hair Weave ( 61.90 $)
Vernee Apollo 4G Phablet-361.26 $361.26
2015 spring loose big yards female hedging sweater vest sweater vest round neck wool vest waistcoat jacket ( 32.00 $)
Clip in human hair extensions 10 ( 55.00 $)
Enamel Checked Silver Plated Square Cuff Links ( 86.18 $)
DOMINO DM368 3G Smartwatch ( 89.99 $)
1pcs knee brace mcdavid honeycomb kneepad famousbrand knee pad elbow support basketball leg sleeve breathable sport ( 5.77 $)
Vernee Thor 4G Smartphone-119.99 $
Korean gold and silver plated leave crystal stud earrings fashion statement jewelry earrings for women free ( 0.65 $)
Wing antique gold earrings ( 173.32 $) Roberto Cavalli
купить аккаунт бателфилд 3 +за 10 рублей
KUPI KOLYASKU.RU - the best Internet-shop of children's goods for newborns and preschoolers with delivery across Russia free delivery in Moscow
La decouverte black satin sandal ( 322.57 $) Olgana Paris
Resin and Brass Double Viti Large Bangle wCrystals ( 130.00 $)
Bearking professional hot fishing tackle retail 2015 good fishing lures 65mm 14g crank dive 2m pike ( 5.00 $)
Discounts! best in beauty
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).
READ MORE
New brand shark mens tank tops stringer bodybuilding fitness men s tanks clothes gymshark singlets ( 9.90 $)
Demi, Zhak
Kerui iosandroid app lcd spanishrussianenglish gsm burglar voice sms wireless control home shock doorwindow alarm auto dial ( 101.20 $)
скачать бателфилд 2 вьетнам через торрент
New design fashion tattoo tattoo of gold and silver necklace bracelet model products waterproof temporary tattoo Flash tattoos ( 0.88 $)
шкив коленвала 406 двигатель зубья метки
направляющие клапана ваз 2109
Umi Max 4G Phablet-187.60 $
combat 5
XINDA 25KN Professional Carabiner D Shape Safety Master Lock Outdoor Rock Climbing Buckle Equipment ( 8.30 $)
Malaysian virgin hair straight 3 bundles rosa hair products malaysian straight hair unprocessed malaysian human hair weave ( 40.00 $)
4 Bundles Brazilian Body Wave Brazilian Virgin Hair Body Wave Brazilian Hair Weave Bundles 8a Unprocessed Human Hair Extensions ( 66.44 $)
Women floral canvas bucket casual shoulder bag spanish beach bags women string shopping handbags lace printing bag female bolso ( 25.00 $)
26 Colors Replacement Silicone Strap Multi-color Sport Silicone Watchband Silicone Watch Band for Apple Watch AW2SS ( 3.59 $)
Makorster fashion brands vintage women shoulder bag famous brand messenger bags small crossbody bags for women ( 3.00 $)
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)