代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/131795/14125428
dat vb_fun27b.dat
语法
----
FileAttr(filenumber, returntype)
FileAttr 函数的语法具有以下几个命名参数:
部分 描述
filenumber 必要.Integer 类型,任何有效的文件号.
returntype 必要.Integer 类型.它是数字,指出返回信息的类型.指定 1 则可返回一个代表文件方式的数值.而
www.eeworm.com/read/131795/14125463
dat vb_fun92b.dat
语法
----
Seek(filenumber)
必要的 filenumber 参数是一个包含有效文件号的 Integer.
说明
----
Seek 函数返回介于 1 和 2,147,483,647(相当于 2^31 - 1)之间的值.
对各种文件访问方式的返回值如下:
方式 返回值
Random 下一个读出或写入的记录号.
Binary,
www.eeworm.com/read/131795/14126098
dat vb_code40b.dat
语法
----
Open pathname For mode [Access access] [lock] As [#]filenumber [Len=reclength]
Open 语句的语法具有以下几个部分:
部分 描述
pathname 必要。字符串表达式,指定文件名,该文件名可能还包括目录、文件夹及驱动器。
mode 必要。关键字,
www.eeworm.com/read/131795/14126353
dat funtc263b.dat
#include
#include
#include
int main(void)
{
int i;
randomize();
printf("Ten random numbers from 0 to 99
");
for(i=0; i
www.eeworm.com/read/131795/14126946
dat funtc17b.dat
rand
#include
#include
int main(void)
{
int i;
printf("Ten random numbers from 0 to 99
");
for(i=0; i
www.eeworm.com/read/131795/14127305
dat funtc262.dat
函数名称: random
函数原型: int random(int num)
函数功能: 得到一个在0和参数num之间的随机数
函数返回: 一个在0和参数num之间的随机数
函数说明: num 最大的随机数取值
所属文件:
www.eeworm.com/read/131470/14144155
c util.c
/* Version 3.3 Last modified: December 26, 1995 */
/*-------------------------------------------------------------------*
* Function Set zero() *
www.eeworm.com/read/233421/14152756
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/233421/14153642
pas unit2.pas
unit Unit2;
interface
uses
unit1;
Function GASDEV:real;
implementation
Function GASDEV:real;
var
V1,V2,FAC,R:real;
begin
If ISET^= 0 Then
begin
repeat
V1:=2
www.eeworm.com/read/233414/14154685
h rand.h
/* RAND.H - Interface to random number generation procedures. */
/* Copyright (c) 1995, 2000, 2001 by Radford M. Neal
*
* Permission is granted for anyone to copy, use, modify, or distribute this