Results 1 to 3 of 3

Thread: Random Number that is Mulitple

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    2

    Random Number that is Mulitple

    I want to generate a number between 10 and 300, but this number has to be a multiple of 10. For example: 50, 180. I've already scoured Google and IRC for this answer but no one is helping out, so you guys are my last resort I'm quite new to VB, and i'm trying to make a game at the moment. Hope you guys can help!

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Random Number that is Mulitple

    Generate a random number between 1 and 30 .... then multiply by 10...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2008
    Posts
    2

    Resolved Re: Random Number that is Mulitple

    Gack! Of course, I did 1 - 3 and multiplied by 100, but didn't think of that. How ridiculously stupid of me.

Posting Permissions

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



Click Here to Expand Forum to Full Width