/* * random.c * * Created by Claudio Sartori on Wed May 15 2002. * Copyright (c) 2002 __MyCompanyName__. All rights reserved. * */ #include <stdlib.h> #include "random.h" long randN(long N){ return N*(double)rand()/RAND_MAX; } /* fine randN */