Random data generator

hi,
i'm thinking of writing a java application that would be able to simulate random data and be able to use that data to pass to other program/client. an example would be creating random data from plot extractor of a radar scan, and pass those data (coordinates,bearings etc) to another program.
what classes and objects do i need to create in the radar program?
thanks.

Apart from looking up java.util.Random, I'd strongly advise that you use Object as the superclass of all your other classes. This provides substantial benefits in any Java application.
Sylvia.

Similar Messages

  • How to generate n random dates

    Can anyone help me in generating Random dates, i want to generate 100 random dates in yyyy-mm-dd format.

    I've tried this, but will appreciate any neat solutions...
    public static void main(String arg[]) {
        int no = 0;
        while (no < 100) {
          // Year
          int yylower = 1970; // your lower integer value
          int yyupper = 2000; // the larger one of your two integers
          double rand = Math.random();
          int yyresult = yylower + (int) ( (yyupper - yylower) * rand);
          // Month
          int mmlower = 1; // your lower integer value
          int mmupper = 12; // the larger one of your two integers
          rand = Math.random();
          int mmresult = mmlower + (int) ( (mmupper - mmlower) * rand);
          // Month
          int ddlower = 1; // your lower integer value
          int ddupper = 29; // the larger one of your two integers
          rand = Math.random();
          int ddresult = ddlower + (int) ( (ddupper - ddlower) * rand);
          System.out.println(yyresult  + "-" + mmresult + "-" + ddresult);
          no++;
      }

  • How to generate n random dates between 2 time periods

    Hi,
    I'm trying to write a method that generates n random dates between 2
    time periods. For example, lets say I want to generate n random dates
    between Jan 1 2003 and Jan 15 2003. I'm not sure how to go about
    doing the random date generation. Can someone provide some direction
    on how to do this?
    The method signature should look like this.
    public String[] generateRandomDates(String date1,String date2,int n){
    // date1 and date2 come in the format of mmddyyyyhh24miss.
    // n is the number of random dates to generate.
    return dateArray;
    Thanks.
    Peter

    first take a look at the API concerning a source of randomness (Random might be a good guess), then take a look at stuff concerning dates (Date might be cool, maybe you will find some links from there).
    Who wrote this stupid assignment?

  • How do you generate random data info using json and spry?

    I have a mobile applicaton that uses spry datasets that dynamically populate a jquery mobile listview by using a json file. Everything is operating as it should.
    However, I would like to understand how to pull random objects from the json file to have them displayed on a different page.
    My json file is standard and not complicated. It has several levels. Each is represented as below:
                                  { "Level1":
                                                                {"imageurl":"images/_myimage.png",
                                                                "someData":"S,A,P,R",
                                                                "levelLongDesc":"further description",
                                                                "name": "John Doe",
                                                                "page": "referencepage",
                                                                "description":"The description of the image"
    {"imageurl":"images/_myimage.png",
      "someData":"S,A,P,R",
      "levelLongDesc":"further description",
      "name": "John Doe",
      "page": "referencepage",
      "description":"The description of the image"
    Json file Level1 has about 70 objects
    What I would like to do is randomly load one of the Level1 object arrays into the page when the user selects a Level 1 radio button that is on the screen. I know how to create the page, radio buttons and basics, but just don't know how to pull in the random data.
    I've found one code sample on this site that speaks to spry and xml, but I haven't been able to apply it in any way that works for me with the json file:
    http://forums.adobe.com/message/662551
    I've also googled. There isn't much on spry datasets with json and generating random info. There was a little bit on sorting, but that didn't help either.
    Does anyone have a good example/tutorial of how to use the random function with spry/json?
    TIA
    -Rachel

    I've done similar things before.  A few thoughts for you:
    1. I'm assuming you're doing a buffered period or frequency measurement on the incoming encoder pulses, right?  First key point is that you'll have data that is spaced equally in position, but not equally in time.  If you are looking for a time-based FFT such that increasing speed will shift your spectrum, you're going to need to go through an interpolation process to resample your data as though equally-spaced in in time. 
    2. Your 149 pulse per rev encoder may be a significant source of error unless its 149 pulses are placed with extreme accuracy.  Any error in pulse placement violates your underlying assumption of data that is equally-spaced in position.  It'll be very helpful to send your data through a software lowpass filter to attenuate those artifacts. 
    3. I am not sure what you mean by "decompose the buffered data (array) into a single datastream."  You'll get an array of periods / frequencies from the call to DAQmx Read.  If you want to use it in a LabVIEW waveform datatype, you'll first need to do the resampling to create equally-spaced-in-time data.  The LabVIEW waveform datatype (and all the analysis functions like FFT that use it) depend on receiving data with a fixed constant time interval between samples.
    -Kevin P.

  • Plot xy graph using random number generator

    How do i plot xy graph dynamically every 5 seconds with a random number generator?
    X axis : Time
    Y Axis : Random number generator

    I've done tis so far. im able to plot dynamically every 1 second.
    but the problem i am facing is The X axis display every 1 second.
    i want it to be fixed 24 hours time format, and the data will gradually plots the data on y axis against x axis every one second, without changing the scale of the x axis (24hour time format)

  • Random quote generator

    Does anyone know of a random quotes generator plug-in/applescript or another way to generate random quotes on one's calendar?

    Thanks Don. That helps just a bit.
    However, while I appreciate the sample page of randomizing,
    and although I reviewed the code, I would still like to be able to
    simply use the WYSIWYG setup through DreamWeaver.
    Again, Its more the just randomly displaying the list. Its
    making sure I can apply separate CSS to the quote and the name and
    making sure the name stays with the quote.
    I basically just need to know that I wrote the XML sheet
    correctly, what XML items to choose in the data set window along
    with what functionality to set and whether or not I have to write
    extra code in addition.
    I do appreciate your response.

  • Random NUMBER generator help..

    Hi all,
    i'm having issues with my random number generator i'm trying to fill my array with random numbers but i keep getting it filled with zeros.... can any one tell me what i'm doing wrong i can;t figure it out..
    for (int i =0; i < 100; i++){
                        int x=(int) (Math.random());
                        data[i] = x;
    }

    From the API "Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0."
    So casting the value to int is always going to result in a zero value.
    You need to multiply by a value that is one larger than the value you want to be your maximum. For example:
    int x = (int)(Math.random() * 100);
    should create a random number from 0 to 99

  • For a few months now my ical keeps jumping back and forth.  It's very hard to use my calendar as it doesn't open on today, it may stay a few seconds and then it goes backwards to random dates and forwards.  It doesn't sit still so I can see what I have on

    My iCal is driving me nuts.
    It won't sit still when I am looking at my calender.  I try holding it still with one finger, two fingers and it just moves.  It jumps to random dates and I have no confidence in it any longer.   I use my calendar all the time and this just isn't good enough.
    I have gone into the apple store and they said they hadn't seen that before.  It did it while I was there.  They restored the phone and it didn't make any difference.
    I have turned the calendar off in settings - mail - icloud - deleted and then turned back on again.  It didn't help.
    I put the Google Calendar app on in the hopes I would have a calendar that wouldn't frustrate me and it is so slow in responding, I have deleted it.
    I see online that many others are having the same problem with their iCal. 
    It would be great to know the solution.
    Please help

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • Can not access data generator in HANA SHINE Content

    Hi Expert,
      After import Delivey Unit of SHINE Content, then i was told by the Guide Book that i could use data generator to generate demo data by access URL
    http://<myServer>:<XS Port>/sap/hana/democontent/epm/admin/ui/WebContent/admin.html
    STEP1:I used SYSTEM on the HANA login page
    STEP2:Error 404 refelect
    Does anyone else have encountered this problem?
    Message was edited by: Tom Flanagan

    You might check the repository browser, but I don't believe that URL is correct.  There is no ui or WebContent folder in the path in my system.  Its just /sap/hana/democontent/epm/admin/
    But I suggest checking the folder structure in the Repositories view in your own system to make sure. My system is a new version and could be different than what you are seeing. However this would explain why you are getting the 404. 
    Also make sure that SYSTEM has the necessary SHINE admin role added.

  • Is there a way to create a random text generator in AE 4 ?

    Hi all,
    I'm a new user of an old version of After Effects 4.1 on Windows 7.
    I just gained the help on this forum to create a digital clock countdown with the Numbers Effect and the Timecode 30 setting in AE 4 and I noticed that there is a random numbers generator in that effect too.
    But now I'm in the Text Effect and I'm able to put my text/title on the solid layer in a composition and apply some MM scripts to the text... mainly I've just been able to use the 'Blink' script and manipulate that script a little to make it flash faster or slower.
    Since AE 4 cannot use .jsx scripts or Expressions, I guess I'm limited to MM scripts (which I've been searching for) and the built-in plug-ins and effects... but I can't find a random text generator... like where the text scrambles as if it is trying to break a code.  This effect that I'm trying for would be similar to a scrambled text effect generated in Swish or other FLASH text effect generators.
    So if anyone knows how to create a scrambled or random text effect in the old After Effects 4.1, please let me know.
    Thanks allot,
    digi

    Thanks guys,
    Yes, I'm using AE 4.1, per my explanation in my other posts about the timecode effect and codecs.
    Since there is a built-in random number generator in AE 4.1 that is part of the Numbers Effect, I thought there may still be an after market Effect, plug-in or mm script for a random text generator.
    I've been searching the web, but its a big place.
    Thanks,
    digi

  • The "More Everything Plan" is ruining my life!  (and adding random data charges to my bill)

    Hello,
    I recently changed my data plan a few months ago to the 6 GB Data plan with 2 phones tied to my service when I upgraded my phone to the Samsung Galaxy 5.  For the most part my wife and I have been doing pretty good at keeping the our monthly data usage down to the 6 GB.  On Nov 4th was I upgraded to the new 10 GB my everything plan and ever since that change, my account has been making RANDOM data charges at all hours of the night!  I pulled both my wife's Data Usage report and my own and compared them. 
    Looking at my wife's data usage below, you can clearly see that there are automated data spikes that her phone went through on the same exact time on different days!  Looking at the dates, these spikes did not start to automatically occur until we upgraded our plan on Nov 4th.  The same goes for my data usage below.  There are multiple days that my phone surged on the same exact time with large spikes of data!  These reports were organized by largest "Unbilled Data Usage" spikes.
    These spikes SHOULD NOT be occurring and have nothing to do with what apps we have installed our phones.  We have both filtered our usage by apps on our phones and they do not add up.  What's the point of having a larger data plan, if that data plan just steals MG randomly off your phone for no reason???  Because of these spikes, I have add to pay over $100 in overage fees and in November, I have already had to buy MORE DATA ($20 for 5 GB more) because I was already at 90% of my usage with 2 weeks still to go in the billing cycle!  I need actions and not suggestions.  I'm not the only one with these problems and this needs to be addressed.
    Please help!!!!!
    (Wife's Data Usage)
    (My Data Usage)

    You're right, data usage can be confusion...especially when your response above doesn't make sense.
    If data usage is counted in 6 hour blocks, then how in the world did Nov. 5th last 138 hours???  Data was calculated 23 times on 11/5/14 and 14 times on on 11/4.  These are just 2 examples of when the data was pulled in in "6 hour blocks of time". Nearly every day in my pulled report this month shows 2 dozen or more times the data was recorded and billed each day. (see below)
    Further more, if data usage actually was counted in 6 hour intervals, that still doesn't explain why my phone randomly surged 1.27 GB of data at 5:36 AM in the morning on 11/12/14.  Even if this counted data since 11:36 PM the night before on 11/11/14 night, there's no way I would have used this much data!  Since I work during the weekdays 9-5, I am already in bed at this time and not using my phone.  And it can't be recorded data usage after 5:36 AM, because then what would be the point of having a time stamp in the report?  Where was this data coming from???  (see below)
    The timing of my spike in data is just way too coincidental of when I upgraded my data to 10 GB earlier this month.  If you compare our data usage against other months (when I had 6 GB) we didn't have random spikes like we are seeing now.  There is something wrong with the new data plan on our phones, and I really wish someone could clearly point out where these additional charges are coming from.  Please have a representative contact me at your earlier convenience.
    6 Hour Blocks of Time?
    Data pulled at 5:36 AM
    Data Spike in the Past Months

  • I want to use Get Panel Image in Labview 5.0.1 and need details on how to save the BMP data generated

    I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?

    Hi,
    If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
    You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
    This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
    send it to you (sorry, I won't, it's copywrited).
    If you cannot get this VI anywhere, you'll need to figure out the BMP file
    format yourself. It's not too complicated, but still could take some days.
    Perhaps someone figured it out before LV5.1 was released.
    Regards,
    Wiebe.
    "RDK" wrote in message
    news:[email protected]..
    > I want to use Get Panel Image in Labview 5.0.1 and need details on how
    > to save the BMP data generated
    >
    > I am trying to generate an application that saves a copy
    of its front
    > panel on completion. This is easy to do using an invoke node with
    > Print VI to HTML but this does not work in an .exe format. I have seen
    > elsewhere that you have to use the Get Panel Image method, but no
    > details are supplied in LV 5.0.1 documentation of how to use the
    > "image" data (1-D Unsigned Byte array) that is generated. I want to
    > save this in a format that can then be read as a bitmap in any
    > standard graphics package. Any assistance?

  • I'm having some difficulty with Time Machine.  It appears to be deleting backups from random dates on my external hard drive.  I am not deleting them.  Are they hidden and how do I prevent this from happening?  Can I retrieve them?

    I'm having some difficulty with Time Machine.  It appears to be deleting backups from random dates on my external hard drive.  I am not deleting them.  Are they hidden and how do I prevent this from happening?  Can I retrieve them?

    ... I didn't know that Time Machine was more a last resort back up instead of main back up.
    Don't rely upon Time Machine to the exclusion of all else. I compliment Time Machine with a periodic "clone". TM is much better than nothing, but it's a safety net, not a hammock
    Here is my understanding of Time Machine's file deletion algorithm, distilled from Pondini's FAQ, Apple's KB articles, and my own observations.
    Time Machine deletes ("thins") files from the backup disk as follows:
    Hourly backups over 24 hours old, except the first backup of the day
    Daily backups over 30 days old, except the first backup of the week
    Older backups get deleted when Time Machine requires space and you deleted them from the source disk.
    Therefore, assuming TM has been performing at least one backup per day, backup files will remain available:
    at least thirty days, if they existed on your Mac for at least a day
    until you run out of space, if they existed on your Mac for at least a week
    In addition to the above, Time Machine always keeps one complete copy of your source disk so that the entire volume could be restored if necessary. Any files that remain on your source volume will be present on the TM backup, no matter how old they are.
    If you are using 250 GB of space on your source disk, its Time Machine backups are likely to require at least twice that much. A good estimate of the minimum required backup volume size would be about three times the size of your source disk - 1.5 TB in your case.
    A more thorough explanation would require Pondini since he has plumbed Time Machine's mysteries far more than I have.
    http://support.apple.com/kb/HT1427

  • Calculations in Xcelsius using data generated by a Web Service Connection

    Hi,
    I have set up a web service connection to pull in 4 columns of data: 1. CATEGORY  2. SUBCATEGORY 3. PRODUCT TYPE   4.#OFCALLS.  There will be anywhere from 1 to 500 rows of data depending on day of week and time of day.  The web service sorts the list by #OFCALLS descending. The OUTPUT VALUES of the web service connection are mapped to cells A19:D518.
    Formulas in the spreadsheet take the Top 10 from the list and populate it to cells  A4:D13.  A formula in cell D15 sums the #OFCALLS for the entire web service connection output (A19:D518).
    The data in A4:D15 is mapped to a spreadsheet table on my canvas.   When the report generates, the data from the TOP 10 of the web service connection populates properly, but the cell that should reflect the TOTAL#OFCALLS (D15) shows zero.
    Is it not possible to do additional calculations in the spreadsheet based on data generated by the web service connection?  A major difference between using an XML Map and a Web Service Connection is the XML Map actually populates the spreadsheet with the new data when it is refreshed.  The Web Service connection data never actually appears in the spreadsheet itself, even though it updates to the appropriate vessel on the canvas.   This makes me think that no additional calculations can be done in the spreadsheet based on the web service connection data.
    Can anyone tell me if that is correct?  If so, then the web service connection would also have to pull in the TOTAL#OFCALLS along with the other data.   This would also seem to greatly limit what you could do with data generated by a web service connection, so I am hoping I am wrong and just don't understand how to do this.
    Can anyone clarify this for me?  If I failed to give any pertinent info let me know what it is, and I will update my post.
    Thanks!

    I have seen similar behavior as well.  I have live data coming into Xcelsius from a data connection. 
    A supported Excel formula
    =IF(ISBLANK(J2),I2,VALUE(TODAY()-J2))
    is then applied to one of the columns to create an additional derived column.
    Taking a snapshot of the data shows that the derived column is being populated, however the controls I've tried hooking up to the derived column (charts and labels) are always empty.
    Information on whether this is supported would be appreciated.
    Thank you,
    David

  • Use SQL to roll a schedule forward to a random date

    Hi,
    oracle 10.2.0.4  Linux
    We have two largeish  tables ( 10^5 rows in each) that track our workforces scheduled hours.  The first table creates generic schedules that show working days, each schedule must have 1-n rows in it, one for each day in the cycle.  The majority of our workforce are on a rolling 8 day cycle.  In the example below I have two shifts
    Sched_4d that is a four day cycle of day-on day-off pairs.
    Sched_3d this is a staggered full day, half day, day-off cycle.
    From the information below you can see that in 1990 the sched_4d went from an 8 hour day to a 9 hour day.  There is no guarantee that SCHED_4D will not suddenly gain 2 extra days as part of this years union talks.
    The second table is a simple assigment table showing when a person goes onto a schedule.
    To work out a given day's schedule, you look at the EMP_SHIFT table to work out which schedule is "current", then you look at the date that the person was assigned to the schedule and assume that is SHIFT_ID 1, the next day is SHIFT_ID 2 until you complete the cycle and start again.
    CREATE TABLE SCHED_DATA
      SCHED_ID     VARCHAR2(8 CHAR)             NOT NULL,
      ASOFDATE           DATE                          NOT NULL,
      SHIFT_ID        NUMBER(3)           NOT NULL,
      SCHED_HRS       NUMBER(4,2)                   NOT NULL
    CREATE UNIQUE INDEX SCHED_DATA on SCHED_DATA (SCHED_ID, ASOFDATE, SHIFT_ID)
    CREATE TABLE EMP_SHIFT
    EMPID VARCHAR2(15 CHAR) NOT NULL,
    ASOFDATE DATE NOT NULL,
    SCHED_ID VARCHAR2(8 CHAR) NOT NULL
    CREATE UNIQUE INDEX EMP_SHIFT on EMP_SHIFT ( EMPID, ASOFDATE, SCHED_ID)
    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1980',1,8);
    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1980',2,0);
    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1980',3,8);
    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1980',4,0);
    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1990',1,9);
    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1990',2,0);
    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1990',3,9);
    INSERT INTO SCHED_DATA VALUES ('SCHED_4D', '01-JAN-1990',4,0);
    INSERT INTO SCHED_DATA VALUES ('SCHED_3D', '01-JAN-1990',1,8);
    INSERT INTO SCHED_DATA VALUES ('SCHED_3D', '01-JAN-1990',2,4);
    INSERT INTO SCHED_DATA VALUES ('SCHED_3D', '01-JAN-1990',3,0);
    INSERT INTO EMP_SHIFT VALUES ('001', '20-DEC-1989', 'SCHED_4D');
    INSERT INTO EMP_SHIFT VALUES ('001', '01-JAN-1990', 'SCHED_4D');
    INSERT INTO EMP_SHIFT VALUES ('001', '03-JAN-1990', 'SCHED_3D');
    Given the above information, I need to write a select that receives 2 dates ( :FROM and :TO) and for all employees in EMP_SHIFT returns a row for each day and the relevant scheduled hours for that day. 
    Thus the above data  with a from and to of '21-DEC-1989' : '05-JAN-1990' should return
    EMPID, DATE, SCHED_HOURS
    001, 21-DEC, 0
    001, 22-DEC, 8
    001, 23-DEC, 0
    001, 24-DEC, 8
    001, 25-DEC, 0
    001, 26-DEC, 8
    001, 27-DEC, 0
    001, 28-DEC, 8
    001, 29-DEC, 0
    001, 30-DEC, 8
    001, 31-DEC, 0
    001, 01-JAN, 9
    001, 02-JAN, 0
    001, 03-JAN, 8
    001, 04-JAN, 4
    001, 05-JAN, 0
    The employee started thir assignment to sched_4d on 20-DEC, so that would be SHIFT_ID 1.  Thus 21-DEC is SHIFT ID 2 which is 0 hours.  Cycle until the next event which is 01-JAN, when they are assigned to the new sched_4d which has them working 9 hours on day 1.  On 03-JAN they switch to the new cycle and go on the 8:4:0 rotation.
    I can see how I could
    SELECT EMPID, DAY_OF_INTEREST, SCHED_ID
    FROM EMP_SHIFT A, (SELECT '01-JAN-1979' + rownum "DAY_OF_INTEREST" from dual connect by level <=10000)
    WHERE A.ASOFDATE = (SELECT MAX(A1.ASOFDATE) FROM EMP_SHIFT A1 WHERE A1.EMPID = A.EMPID AND A1.ASOFDATE <= DAY_OF_INTEREST)
    AND DAY_OF_INTEREST BETWEEN :FROM_DT AND :TO_DT
    And I imagine I need to use some kind of MOD( (DAY_OF_INTEREST - EMP_SHIFT.ASOFDATE), (#number of days in shift) ) to work out which shift_id applies for a given Day_of_interest
    But I am struggling to do this in a way that would scale to more than one employee,
    Do any of the analytic functions achieve this in a neat way ?

    Hi,
    There are several analytic functions that might help here.  Both tables include starting dates only; we need to know ending dates for employee assignments as well as for schedules.  I used the analytic MIN and LEAD functions to get these in the query below.  Also, the query below needs to know how many days are in each schedule.  I used the analytic COUNT function for that.
    WITH    params   AS
       SELECT  TO_DATE ('21-DEC-1989', 'DD_MON-YYYY')  AS start_date
       ,       TO_DATE ('05-JAN-1990', 'DD_MON-YYYY')  AS end_date
       FROM    dual
    ,       all_dates   AS
        SELECT  start_date + LEVEL - 1    AS a_date
        FROM    params
        CONNECT BY  LEVEL <= (end_date + 1) - start_date
    ,       sched_data_plus AS
        SELECT  sched_id, asofdate, shift_id, sched_hrs
        ,       NVL ( MIN (asofdate) OVER ( PARTITION BY  sched_id
                                            ORDER BY      asofdate
                                            RANGE BETWEEN 1         FOLLOWING
                                                  AND     UNBOUNDED FOLLOWING
                                          ) - 1
                    , TO_DATE ('31-DEC-9999', 'DD-MON-YYYY')
                    )          AS uptodate
        ,       COUNT (*) OVER ( PARTITION BY  sched_id
                                 ,             asofdate
                               )  AS days_in_sched
        FROM    sched_data
    ,       emp_shift_plus AS
        SELECT  empid, asofdate, sched_id
        ,       NVL ( LEAD (asofdate) OVER ( PARTITION BY  empid
                                             ORDER BY      asofdate
                                           ) - 1
                    , TO_DATE ('31-DEC-9999', 'DD-MON-YYYY')
                    )    AS uptodate
        FROM    emp_shift
    SELECT    e.empid
    ,         d.a_date
    ,         s.sched_hrs
    FROM      all_dates        d
    JOIN      sched_data_plus  s  ON   d.a_date    BETWEEN s.asofdate
                                                   AND     s.uptodate
    JOIN      emp_shift_plus   e  ON   d.a_date    BETWEEN e.asofdate
                                                   AND     e.uptodate
                                  AND  e.sched_id  = s.sched_id
                                  AND  MOD ( d.a_date - e.asofdate
                                           , s.days_in_sched
                                           ) + 1   = s.shift_id
    ORDER BY  e.empid
    ,         d.a_date
    This query starts by getting all the days of interest, that is, all the days between the given start- and end dates.  (When you said "random date", I assume you meant "given date", which may not involve any random element.)
    Once we have a list of all the dates of interest, getting the results you want is just a matter of inner-joining to get which schedules were in effect on those dates, and which employees were assigned to those schedules on those dates.
    If you're concerned about having more than 1 employee, maybe you should post sample data that involves more than 1 employee.
    How do you handle employee terminations?  For example, what if employee 001 had quit on January 4, 1990?  I assume you'd want the output for that employee to stop on January 4, rather than continue to the end of the period of interest.
    If you have termination dates in an employee table not shown here, then you can use that termination date instead of December 31, 9999 as the default end date for assignments.  If you have a special schedule for terminations (or leaves of absence, for that matter) you'll probably want to include a WHERE clause in the main query not to display dates after the employee left (or while the employee was on leave).

Maybe you are looking for