You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

请求协助:Excel数据导入网页、随机数生成、截图及结果回写

Hey team, let's walk through how to nail this random number generation task smoothly—whether you're leaning into manual steps or a bit of automation, here's a clear, actionable plan:

Task Breakdown: Excel Data → Random Number Generation → Results Logging

Core Requirements Recap

现需协助完成以下任务:将Excel数据导入指定网页(https://www.random.org/integers/),执行15次随机数生成请求;每次需在对应字段输入数值范围,点击「Get numbers」按钮获取随机数后,将结果回写到Excel,并留存每次操作的网页截图作为凭证。

Step 1: Prep Your Excel Data First

  • Organize your Excel sheet with these dedicated columns to stay organized:
    • Attempt Number (1 to 15)
    • Minimum Value (the lower bound for each random number request)
    • Maximum Value (the upper bound for each random number request)
    • Generated Random Numbers (to paste or write the results here)
    • Screenshot File Path (to log where each screenshot is saved)
  • Double-check that all 15 sets of min/max values are clearly mapped to each attempt—this avoids mix-ups during execution.

Step 2: Execute Random Number Generation (2 Options)

Option A: Manual Execution (Great for Quick, Low-Tech Teams)

For each of the 15 attempts, follow these steps:

  1. Open the random number generator page at https://www.random.org/integers/
  2. Fill in the web form using your Excel data:
    • Enter 1 in the Number of integers field (adjust this if you need multiple numbers per request—confirm requirements first)
    • Paste the Minimum Value from your Excel row into the Minimum field
    • Paste the Maximum Value from your Excel row into the Maximum field
    • Leave other fields (like Columns, Format, Randomization) as default unless you have specific instructions to change them
  3. Click the Get numbers button to generate your random number
  4. Copy the generated number from the results box below the button
  5. Paste this number into the Generated Random Numbers column for the corresponding attempt in Excel
  6. Take a screenshot of the entire page (make sure it includes the form inputs and the generated result) and save it with a clear filename like RandomGen_Attempt_01.png (replace the number with the current attempt)
  7. Log the screenshot's file path in your Excel sheet for easy tracking later

Option B: Automated Execution (For Tech-Savvy Teams to Save Time)

If you want to cut down on repetitive manual work, use Python with browser automation and Excel handling tools:

  1. Install the required packages first:
    pip install selenium openpyxl pillow
    
  2. Write a script that:
    • Loads your Excel file and reads all 15 min/max value pairs
    • Launches a web browser and navigates to the random number page
    • For each attempt:
      • Auto-fills the min/max fields with the Excel data
      • Clicks the Get numbers button programmatically
      • Extracts the generated random number from the page
      • Writes the number back to the corresponding row in Excel
      • Takes a full-page screenshot and saves it with a standardized filename
  3. Test the script with 1-2 attempts first to make sure it works as expected before running all 15 requests

Step 3: Post-Execution Checks

  • Verify that all 15 random numbers are correctly logged in Excel and match the values shown in your screenshots
  • Cross-reference each screenshot to confirm the min/max inputs match what's in your Excel sheet
  • Store all screenshots in a dedicated folder (e.g., RandomGen_Screenshots) so you can easily access them later as needed

内容的提问来源于stack exchange,提问作者Kesavan Annamalai

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 07:24:29