Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] Random Number

Expand Messages
  • Golgi !
    #Use the rand() function: $num = rand(10); print int($num), n ; #The 10 represents the maximum value of the random number.
    Message 1 of 2 , Aug 1 6:13 AM
    • 0 Attachment
      #Use the rand() function:

      $num = rand(10);
      print int($num), "\n";

      #The 10 represents the maximum value of the random number.

      _________________________________________________________________
      Add photos to your e-mail with MSN 8. Get 2 months FREE*.
      http://join.msn.com/?page=features/featuredemail
    • Dmitriy Lyalyuev AKA Silver Ghost
      Ave, perl-beginner@yahoogroups.com, morituri te salutant! G #Use the rand() function: G $num = rand(10); G print int($num), n ; G #The 10 represents the
      Message 2 of 2 , Aug 1 6:15 AM
      • 0 Attachment
        Ave, perl-beginner@yahoogroups.com, morituri te salutant!

        G> #Use the rand() function:
        G> $num = rand(10);
        G> print int($num), "\n";
        G> #The 10 represents the maximum value of the random number.

        Before need use srand();

        srand($^T);
        $num = rand(10);
        print int($num), "\n";

        --
        01.08.2003, 16:14

        Dmitriy Lyalyuev AKA Silver Ghost
        silver@...
      Your message has been successfully submitted and would be delivered to recipients shortly.