daily pastebin goal
91%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DROP FUNCTION IF EXISTS LOS5;
  2. DELIMITER $$
  3. CREATE FUNCTION LOS5(i int)
  4. RETURNS DOUBLE
  5. LANGUAGE SQL
  6. BEGIN
  7.   DECLARE y DOUBLE;
  8.   SET y = RAND(i);
  9.   SET y = EXP( y^2 / -2 ) / SQRT(2*PI());
  10.   RETURN y;
  11. END;
  12. $$ DELIMITER ;
  13. SELECT LOS5(5);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top