Limite random numbers from 1 to 9


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2006
    Posts
    60

    Default Limite random numbers from 1 to 9

    Hello

    What is the best way to limite the Random command to generate number from 1 to 9?

    Thanks for any help

    Regards

    Pedro

  2. #2
    Join Date
    Jul 2006
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    Hello

    Solved thanks a previous tread from Melany

    Dice=(RandomValue//6)+1 ' Convert it to range 1-6


    Regards

    Pedro

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  3. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 03:37
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 12:19
  5. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 14:23

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts