代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/221194/14754207
java 利用fcfs算法模拟实现处理机调度.java
import java.util.Date;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.JOptionPane;
import javax.swing.*;
class win extends Frame implements ActionListener
www.eeworm.com/read/221192/14754227
java 利用fcfs算法模拟实现处理机调度.java
import java.util.Date;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.JOptionPane;
import javax.swing.*;
class win extends Frame implements ActionListener
www.eeworm.com/read/221179/14755084
h randnumber.h
#include "time.h"
//used to generate a random number from the current seed
const unsigned long maxshort=65536L;
const unsigned long multiplier=1194211693L;
const unsigned long adder=12345L;
c
www.eeworm.com/read/221179/14755088
cpp randnumber.cpp
#include "randnumber.h"
CRandNumber::RandomNumber(unsigned long s)
{
if(s==0)
randSeed=time(0);
else
randSeed=s;
}
unsigned short CRandNumber::Random(unsigned long n)
{
randSeed=m
www.eeworm.com/read/121331/14759702
java 序列发生器.java
import java.util.* ;
public class test
{
public static void main(String[] args)
{
String str = ""+new Date().getTime();
int ran = new Random().nextInt();
StringBuffer strb = new S
www.eeworm.com/read/120923/14782865
cpp randgentest.cpp
//: C08:RandGenTest.cpp
// From "Thinking in C++, 2nd Edition, Volume 2"
// by Bruce Eckel & Chuck Allison, (c) 2001 MindView, Inc.
// Available at www.BruceEckel.com.
// A little test of the rand
www.eeworm.com/read/120858/14785045
asm per.asm
; -> Polymorphic En-/Decryption routine generator for per byte encryption
www.eeworm.com/read/220447/14800152
txt gasdev.txt
Function GASDEV:real;
var
V1,V2,FAC,R:real;
begin
If ISET^= 0 Then
begin
repeat
V1:=2 * Random - 1;
V2:=2 * Random - 1;
R:=Sqr(V1) + Sqr(V2);
u
www.eeworm.com/read/220439/14800834
cpp die_roller.cpp
// Die Roller
// Demonstrates generating random numbers
#include
#include
#include
using namespace std;
int main()
{
srand(time(0)); // seed random number