Testing.randomValue(3kaya) Kaya module reference Testing.randomValue(3kaya)NAME
Testing::randomValue - Return a random value
SYNOPSIS
Arbitrary randomValue( Int depth=10 )
ARGUMENTS
depth This parameter gives the maximum depth of recursion to guarantee that the value has finite size. The default value is 10 and can usu-
ally be omitted.
DESCRIPTION
Return a random value of arbitrary type.
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/
LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public
License (version 2.1 or any later version) as published by the Free Software Foundation.
RELATED Testing.randomArray(3kaya)Testing.randomChar(3kaya)Testing.randomFloat(3kaya)Testing.randomInt(3kaya)Testing.randomString(3kaya)Kaya October 2012 Testing.randomValue(3kaya)
Hi All
Can anyone let me have a easy way to test if no input was given to a standard read. I would think of using the lenght of the variable, however this seems to be a long cut.
Thx
J (8 Replies)
Hello,
I need to determine if a file I have is empty or not. How can I go about doing this in shell scripting? Some sample code would be appreciated?
Thanks, (6 Replies)
Ok so this is sort of a unix question. I am frequently logging into customers boxes and our product integrates with Active directory.
I deal with a great deal of people who have no business being admins but are and they don't know squat about their network or their DC's. So a recurring problem... (4 Replies)
Hello,
Can anyone help me figure out how to test if the item in the directory is a subdirectory?
I'm writing a code to copy all the contents of directory1 to directory2, but I want to skip all the subdirectories.
Thanks! (4 Replies)
Hi guys
I have problem with my simple calculator, author of my book wrote
One way I tried is to test if one the inpur number is grater than zero, and then substatct
And my protptype function is
#include <stdio.h>
int main(void) {
float a, b , result;
... (11 Replies)
Testing for the presence/absence of a pattern in a file, using /bin/sh:
while read a;
do
b="${a##*pattern*}";
;
done < file
This returns 0 if there's a match. That signal ($?) can then be used outside the loop.
However this method reads through the whole file, even if the match... (2 Replies)
Testing some old script developed by different user.
#!/usr/bin/sh
case "$0" in
*/*) cmd="$0";;
*) cmd=`which "$0"`;;
esac
dir=`dirname "$cmd"`
node="$dir/."
echo $node
below two simple tests are failing, I am not seeing any Control+M characters in the script file and I am not able... (4 Replies)
Hi folks...
I am working on a project where I need to have online bash bash shell integrated in my web page. I am not clear of how to do it. can any one suggest?? The UI needs to be developed in c#. (11 Replies)