Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    Numero casuale compreso!

    Ciao.

    Mi serve una funzione che ogni volta stampi un numero casuale trra 1 e 100;

    così ho fatto:
    Codice PHP:
    $rand "rand(1,100)";
    echo 
    "$rand"
    ma non fa nulla!!
    semplicemente stampa rand(1,100).

    mi sapreste aiutare? grazie!
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  2. #2
    Se forse non dicessi all inizio che rand è una stringa

  3. #3
    cioè?
    poi dopo come lo faccio a stampare?
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  4. #4
    come devo fare?
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  5. #5
    Originariamente inviato da ellecubo
    Se forse non dicessi all inizio che rand è una stringa
    ah...le virgolette!!
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  6. #6
    Originariamente inviato da Manuelandro
    ah...le virgolette!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.