⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 randomseq.java

📁 操作系统课程设计:页面置换算法!!!很好的操作系统大作业
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package util;import java.util.Calendar;import java.util.Random;/** * * @author Administrator */public class RandomSeq {    public static int[] getRandomSeq()    {        int[] arr = new int[20];        Calendar cal=Calendar.getInstance();        Random rand=new Random(cal.getTimeInMillis());        for (int i = 0; i < arr.length; i++) {            arr[i]=(int)(Math.random()*9)+1;        }        return arr;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -