+ Reply to Thread
Results 1 to 2 of 2

Number generator

  1. #1
    Registered User
    Join Date
    12-07-2013
    Location
    Latvia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Number generator

    Hello guys!

    I have been wandering - how to make formula for lottery number generator...

    So what i have in mind

    How to create formula that gives all possible results (combinations) of 6 numbers in a range 1-48
    Maximum 4 numbers can be consecutive.

    I know that it should be easy but I couldn't get further than RANDBETWEEN function with my brains...

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Number generator

    Maximum 4 numbers can be consecutive is going to be hard to guarantee but its easy enough to generate 6 numbers just use rand ansd small or large with index match
    all combinations on your sheet and if you did what could you do with such info? there are
    12,271,512 combinations well less the consecutive ones
    Attached Files Attached Files
    Last edited by martindwilson; 12-07-2013 at 12:23 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Random Number generator
    By sajeel in forum Excel General
    Replies: 1
    Last Post: 12-14-2011, 03:49 PM
  2. Number Generator
    By Chrisniagara in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 01-10-2010, 02:02 PM
  3. Number Generator
    By kbenstead in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-02-2009, 02:50 PM
  4. number generator
    By bobzroom in forum Excel General
    Replies: 4
    Last Post: 01-12-2009, 12:06 PM
  5. same number appears in a random number generator
    By Carmel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2006, 07:25 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1